2010-03-22 13:24 UTC
On my modeless form I have a few tools ( Option Lists, Frames, Check Boxes etc.)...
I made this procedure: when the CheckBox1 (cb1) is checked the OptionList1(OL1) appears, and when the CheckBox1 is unchecked the OptionList1 is hidden.
OnInitialize event I have set up the Long Value of the CheckBox1 on zero ( what means UNCHECKED), and (dcl_Control_SetVisible Proj_Form1_OptionList1 NIL), to have hidden the OptionList1, and UNCHECKED the CheckBox1.
Now, when I run my project, CheckBox1 is CHECKED, and OptionList1 VISIBLE, although these were been set up in ONINITIALIZE event of the form1.
What I have remarked, is that after form1 appears, my CheckBox1 is selected...like in picture below....
After that, I putted another CheckBox (Checkbox2) on my form1, and after project runs, Checkbox2 was selected (I think because was the last putted on the form..), and my settings from the ONINITIALIZE event of form1 were OK...After that, I have erased the last CheckBox (cb2), and CheckBox1 were again checked, how it should not be...
What I should do for overseen the selection, on ONINITIALIZE event? because I think this cause my problem...
Thanks.
I made this procedure: when the CheckBox1 (cb1) is checked the OptionList1(OL1) appears, and when the CheckBox1 is unchecked the OptionList1 is hidden.
OnInitialize event I have set up the Long Value of the CheckBox1 on zero ( what means UNCHECKED), and (dcl_Control_SetVisible Proj_Form1_OptionList1 NIL), to have hidden the OptionList1, and UNCHECKED the CheckBox1.
Now, when I run my project, CheckBox1 is CHECKED, and OptionList1 VISIBLE, although these were been set up in ONINITIALIZE event of the form1.
What I have remarked, is that after form1 appears, my CheckBox1 is selected...like in picture below....
After that, I putted another CheckBox (Checkbox2) on my form1, and after project runs, Checkbox2 was selected (I think because was the last putted on the form..), and my settings from the ONINITIALIZE event of form1 were OK...After that, I have erased the last CheckBox (cb2), and CheckBox1 were again checked, how it should not be...
What I should do for overseen the selection, on ONINITIALIZE event? because I think this cause my problem...
Thanks.
