Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Top Level Form and Menu Adjustment
Message
From
16/11/2001 12:07:56
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Top Level Form and Menu Adjustment
Miscellaneous
Thread ID:
00582780
Message ID:
00582780
Views:
52
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.
Next
Reply
Map
View

Click here to load this message in the networking platform