View Full Version : New Check Boxes on Preload code
civil78
03-15-2006, 08:17 AM
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
civil78
03-15-2006, 05:58 PM
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
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.