Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Highlight a minimized App
Message
De
10/09/2002 13:14:49
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00697567
Message ID:
00698888
Vues:
20
Hi Gerard

I am not sure if a form can be dispayed if the main vfp app window is minimized but if it is possible I would start by experimenting with the desktop property of the form which "specifies whether a form can appear anywhere on the Windows desktop or is contained in the main Visual FoxPro window". In this way the form might be allowed to be "on the windows desktop" even while the main vfp app is minimized. I dont know this for sure but you can try it. Set the desktop property to .T. and run your app. Then try minimize the main window and see what happens to your form.

If this does not work then there is another option which is a bit of a kludge - when you want to restore the form to the user then set the main screen properties to the dimension of the form and then restore the main window. Something like:

* when the trigger occurs to display the form..
* assume form to be displayed is called myform

* move the form to display to the top left corner of the main window

With myform

.left = 0
.top = 0

EndWith

* change the screen size to equal the form size

With _Screen

.width = myform.width
.height = myform.height

* restore the main window - normal display - not maximized
.windowstate=1

EndWith


Something like this. Its a kludge but if you must do it this way then perhaps its an option. You can make it nicer by switching off the main app menu and other things I suppose.

HTH

Jos
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform