Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Desktop, Modal forms
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement