Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Activate/Deactivate Sequence?
Message
From
30/08/1999 12:21:25
 
 
To
30/08/1999 11:25:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00259192
Message ID:
00259217
Views:
14
>To make sure the forms correct toolbar is displayed when the form is activated, my methods look like:
>
>
*Form.Activate
>wait window 'activate1'
>if type('This.oToolBar.Visible')='L'
>	wait window 'activate2'
>	This.oToolBar.Visible = .T.
>endif
>
>and
>
>*Form.DeActivate
>wait window 'deactivate1'
>if type('This.oToolBar.Visible')='L'
>	wait window 'deactivate2'
>	This.oToolBar.Visible = .F.
>endif
Part of my question is, when you click on a for in the background, the newly clicked forms activate fires before the deactivate of the old form, right? How can 2 forms be active at once?
>
>Anyway, when I start the form the wat window sequence looks like:
>
>activate1
>activate2
>
>Then, when open another instance of the form, I see:
>
>activate1
>activate2
>deactivate2
>
>and never see "deactivate1"! Does anybody know why?

Just a guess, but the WAIT WINDOWs might be interfering with the event sequencing. You might want to run the test using DEBUG OUT or something similar.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform