Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Top Level Form and Menu Adjustment
Message
De
16/11/2001 12:07:56
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Top Level Form and Menu Adjustment
Divers
Thread ID:
00582780
Message ID:
00582780
Vues:
53
I have a small Top Level form with a menu instantiated in it. I have noted that if a user sets the font size for menus in Control Panel large enough, it will cause the menu bar to wrap on the form and push all controls down on the form the height of a menu bar.

I can handle this issue on startup in the Activate event by testing and modifying the form's height as necessary. But if the user changes the Control Panel setting while the application is active this does not work. Apparently in Top Level forms the Activate and GotFocus events do not fire after the form is active when switching between it and another running Windows application. If the Activate event fired I could test here when the user clicks on the form and make the adjustment. Paint event does not seem to be appropriate for this condition either, besides, I don't really like to use the Paint event unless it's really necessary...fires too often.

What would be a strategy for resolving this issue?

Thanks,
Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform