Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Desktop Windows on Top
Message
De
13/07/2020 16:08:28
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01675146
Message ID:
01675159
Vues:
91
>>For this, I have passed in thisForm as one of the parameters to the form being created. I then receive LPARAMETERS toParentForm and in the Init() event, store thisForm.oParentForm = toParentForm, and set toParentForm.visible = .f., and then only the current form is visible. When it closes, on the Unload() event, set thisForm.oParentForm.Visible = .t..
>>
>>It's clunky, but it's a way to workaround that issue.
>
>Yes that could be a workaround, but it does not look professional, because often the dialogs are smaller windows and the user would not expect the parent form to disappear. I could fix this issue using your code from the Titlebar click handler, so when the user clicks on the titlebar of the parent form, it finds the top level form and activates this one instead. I probably have to do something similar on key label LEFTMOUSE to see if there is a modal form on top. Thinking about creating a stack in the formhandler to save the hwnd values of each form and activate the latest on any click.

You could use a similar method to set the AlwaysOnBottom property to .t., or leave it as-is and set the AlwaysOnTop to .t. on the form that has focus.

There are some tweaks you can use to workaround what you're doing.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform