Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why 2 clicks to release this one specific form.
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Why 2 clicks to release this one specific form.
Miscellaneous
Thread ID:
00016984
Message ID:
00016984
Views:
121
I have a form that has labels added to it in code for
display. It has a command group of six buttons which
may or may not display all of them. The form adjusts
itself according to the width of the buttons or the
labels. All of this is done in code and not in the
form. Just before the .Show() statement, a .SetFocus()
command is issued to one of the visible buttons in the
command group. Each button has a THISFORM.Release()
statement in it's .Click method. When the form is
showned, it takes 2 clicks before it is released. I've
noticed during testing that the .SetFocus() method seems
to make the form show. The form is modal as defined, but if you make it modeless and then issue the .Show(1)
command, I get the error message that you "cannot change
the modality of a visible form." Something is making the form show twice? I've tried 2 .Release statements in the buttons .Click methods to no avail. Can someone tell me why I need 2 clicks to release this form?
Next
Reply
Map
View

Click here to load this message in the networking platform