>To make sure the forms correct toolbar is displayed when the form is activated, my methods look like:
>
>
>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.