Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Modal form sometimes not displaying on top
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01409069
Message ID:
01409106
Vues:
117
This message has been marked as the solution to the initial question of the thread.
>>The issue I'm having is this:
>>
>>Prior to clicking the command button, if the current focus is on either a grid or a couple of other controls on this page, the pop-up form shows up just fine and everything works. If, however, the focus is just on the page itself or on a spinner control on the page, then the form gets shown but it appears underneath the original form and I cannot do anything with it. It doesn't respond to any events.
>>
>>Any ideas?

>>
>>Try putting this in the Activate of your modal form:
>>
>>
>>Thisform.AlwaysOnTop = .T.
>>Thisform.AlwaysOnTop = .F.
>>

>
>Marcia,
>
>I tried putting this code in the Activate of the main modal form. Unfortunately, the behavior is basically the same as stated in the OP, but now the pop-up form will always appear on top, regardless of whether or not it can respond to anything.
>
>Jon

Did you try to programmatically set focus to any of the controls? BTW, Marcia's idea was to put this code in the form you're calling (the pop up form) as I understood her.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform