How can I add new Check Boxes in the CheckBox Dialog at runtime.
Is there any code that runs in On Preload code and do that?
Thanks.
Professional Software Development Tools
How can I add new Check Boxes in the CheckBox Dialog at runtime.
Is there any code that runs in On Preload code and do that?
Thanks.
You would have to add any potential checkboxes at design time to the screen. Then on the Preload of the screen you would decide which ones to show and which ones to hide.
The action to use to show or a checkbox is:
DlgCheckBox.SetProperties(CTRL_CHECK_BOX_01, {Visible=true});
The action to use to hide or a checkbox is:
DlgCheckBox.SetProperties(CTRL_CHECK_BOX_01, {Visible=false});
Adam Kapilik
Yes I have do that and I know this.
I have design 16 Checkboxes and I set it all in non visible state. (For now I need only 7, but I read the properties from an .ini file)
But I think thats a good idea the possibility of adding new checkboxes at runtime.
Ok Thank's anyway. I do my job with that I have for now.
Thank you for the suggestion.
Adam Kapilik