Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Desktop, Modal forms
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00465676
Message ID:
00465708
Views:
11
Jeff,
Take a look at message 444959. You could code like this to the Unload event of your forms and make the previous form the active window.

HTH.

>I have 4 forms, the 1st form calls the 2nd form, the 2nd
>form calls the 3rd form, and 3rd calls 4th.
>
>Form1 has the following non-default properties set
>ShowWindow = 0
>AutoCenter = .T.
>ControlBox = .F.
>Closable = .F.
>MaxButton = .F.
>MinButton = .F.
>Movable = .F.
>ClipControls = .F.
>WindowState = 0
>WhatsThisHelp = .T.
>WhatsThisButton = .T.
>
>
>
>Form2,Form3,Form4 all have the following non-default properties set
>Desktop = .T.
>AutoCenter = .T.
>Closable = .F.
>MaxButton = .F.
>MinButton = .F.
>KeyPreview = .T.
>WindowType = 1
>
>So, the first form is a modeless form with a grid and a toolbar
>and is running "in-screen". When user clicks the toolbar button the 2nd form
>is invoked it is running DESKTOP=.T. (to conserve screen space). The 2nd form
>then calls the 3rd form and 3rd calls 4th.
>
>PROBLEM: When the 4th form is closed, the 3rd form falls behind the 2nd form (usually).
>Since all of these forms are modal, the user is dead. Usually an ALT+TAB away from the
>app, and then back to the app will bring the 3rd form back on top (usually).
>
>This behavior is eratic and not at all consistent. It will, on occasion perform
>properly. This happens with MODAL forms having DESKTOP=.T. Anyone know of a fix?
>Seems that setting ShowWindow=2 (as top level form) work's, but the state of the app
>is impossible to manage with this setup. Also, setting DESKTOP=.F. works, but
>leaves too little space available for my form(s).
>
>Thanks,
>Jeff
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform