Skip to content

Implement checkbox state management methods - #186

Closed
XxXAdvisaryXxX wants to merge 1 commit into
WaspScripts:mainfrom
XxXAdvisaryXxX:patch-20
Closed

XxXAdvisaryXxX wants to merge 1 commit into
WaspScripts:mainfrom
XxXAdvisaryXxX:patch-20

Conversation

@XxXAdvisaryXxX

Copy link
Copy Markdown
Contributor

Added methods to manage checkbox state.

Added methods to manage checkbox state.
@Torwent

Torwent commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

This is kind of redundant after I added the Checked property to the checkboxes:

{$INCLUDE WaspLib/main.simba}

var
  check: TLazCheckBox;
begin
-  check.SetChecked(True);
-  WriteLn check.IsChecked();
-  check.Toggle();
+  check.Checked := True;
+  WriteLn check.Checked;
+  check.Checked := not check.Checked;
end.    

They are even shorter than the functions with the exception of toggle

@Torwent Torwent closed this Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants