Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing forms
Message
From
30/11/2000 11:25:31
 
 
To
30/11/2000 11:16:17
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00447388
Message ID:
00447392
Views:
8
>I have a form with several command buttons on it. When one of these buttons is pressed, all of the buttons are disabled and another form opens within the first. When I close the second form I want to enable the buttons on the first form but I don't know what syntax to use or what event to put it in. I can't use gotfocus() because the user could simply click in the first form without exiting the second form first. For example, if form1 had report and inventory buttons, when the user clicks reports the 2 buttons are disabled and a form with report options appears. When the user is done reporting and closes form 2 the 2 buttons on form2 should be enabled. Any help would be appreciated.

Can you make the 2nd form modal?
If so, right after the code in the 1st form where you call the 2nd form, you can enable the buttons there. e.g.,
** form1.CallForm2
this.SetAll("Enabled",.F., "CommandButton") && or however
Do form2 
this.SetAll("Enabled",.T., "CommandButton") && or however
The Do form2 line will pause processing in CallForm2() until form2 is closed.

HTH
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform