Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why 2 clicks to release this one specific form.
Message
From
10/01/1997 07:01:05
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00016984
Message ID:
00016999
Views:
67
>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?

it seems from the description that the first click only gets the focus to the command buttons/form and the second fires the command
does the command visually click on the first mouse click?


Arnon
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform