Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it a bug?
Message
From
25/03/2004 15:21:39
 
 
To
23/03/2004 14:14:14
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00888865
Message ID:
00889761
Views:
29
>Hello Kevin.
>
> The problem I am having is maybe about 1 out of 5 times the second form I have up over top of the main one will move to the back where I cannot do anything with it, still loaded, but now I have my main form up with different menus and such and if I try to go back into the second form, it is already open so I get errors there too.
>
>I take it that the second form is modal and has AlwaysOnTop set to true? If so, set AlwaysOnTop to false and put this code in your base form class's activate():
>
>
>IF This.WindowType = 1 &&Modal
>  This.AlwaysOnTop = .T.
>  This.AlwaysOnTop = .F.
>ENDIF
>
That seems to be working for it. I am still not understanding why I would need to set those properties and why the actions are random, but forcing the ontop/onbottom properties seems to work fine. It is funny how many properties I have not needed to use over the many years of coding. Maybe someday I should roll down all of them and look at the discriptions on what they do. Anyways, thanks
``` Appreciate a normal day, it is always better than a bad one ```

Kev
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform