Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to detect if window is minimized
Message
 
À
28/01/1999 00:07:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00181127
Message ID:
00181607
Vues:
8
John,

After much tinkering i found out that the best way to detect a minimize form is to place this code in the resize event of the form

if thisform.windowstate=1
thisform.minimizetotray()
endif

It now works in exe


Alvin Lu
www.webintel.net

>Hi Alvin!
>
>Try the WMINIMUM() function. Yeah, it's old 2.6 stuff but it just might work :-)
>
>
>>I placed a code in the deactivate method of a form
>>
>>if thisform.windowstate=1
>> =minimize to tray
>>endif
>>
>>this works when you run the form but when i compile it to an exe it doesn't. Any workaround?
>>
>>Thanks
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform