On Nov 11, 2006, at 7:14 AM, Kirt Cathey wrote:
Hi All.
Been attempting to integrate a checkbox into one of my windows. Since
combobox seems to be crashing my RB lately,
decided it was time once and for all to figure out checkboxes for
my boolean
data fields.
Here is the situation:
I have a checkbox that when checked, presents a selection dialog
box. The
code that initiates the selection window
is in the checkbox 'Action' event method. However, everytime the
main window
is displayed, and the checkbox reads its
value from the database, the selection dialog box re-appears. How do I
prevent this re-appearance when the checkbox
reads a True value from the underlying database as the main window
opens?
Regards and thanks.
You may create a window property, say IsOpening as boolean, and set
it to true for the condition that you don't want the checkbox
response. Based on my understanding of your situation above, you
would set it to true in the main window's Open event.
Then place your dialog opening code within an If...Then conditional
that checks the status of self.IsOpening:
If not self.IsOpening then
// open your dialog
Else
self.IsOpening = false
End
Best,
Jack
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>