Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling Code on Form Minimize and Maximize
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01271023
Message ID:
01271059
Vues:
21
If the form is based on a form class, you can add a WindowState_Assign method and run the code from there. Use the Edit Property/Method dialog box, find WindowState and click the Assign Method checkbox.

>I need to run code whenever the minimize or maximize button is clicked as well as when the header bar is double-clicked, which also minimizes/maximizes it. Where does the code go?
>
>I was asked to create a test form for testing, and told that it's the resize event.
>
>To test this put a text box on the form and code in RESIZE:
>WITH thisform
> .text1.Value = STR(.height) + STR(.width)
>ENDWITH
>
>I created the test form with the text box and here is what I find:
>
>This does NOT work if
>FormWindowState = 0 and
>_ScreenWindowState = 2
>OR
>FormWindowState = 0 and
>_ScreenWindowState = 0
>
>It DOES work if
>FormWindowState = 2 and
>_ScreenWindowState = 0
>
>As a result I have inconsistant behavior...
>
>Primaraly, I'm having problems with resize code when switching between maximize (windowstate=2) and normal (windowstate=0) modes.
>
>I've added resize code in the activate, de-activate, and resize methods, and all I get is this inconsistant behavior...
eCost.com continues to rip people off
Check their rating at ResellerRatings.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform