Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


changing Windows menu font size from VFP

changing Windows menu font size from VFP

changing Windows menu font size from VFP

I wanna change the Windows menu font size from VFP. How is possible?

RE: changing Windows menu font size from VFP

Why you want to do that?
The user has been made Her/His adjustments for the Windows and I am sure S/He doesn't want somebody to mess with Her/His adjustments.
If you want just to resize your application MENU. Build the menu with Menu Designer. Open YourMenuName.MPR and on every DEFINE ... COMMAND you can put FONT "FontName",nFontSize STYLE cFontStyle.
So you can put the font size in variable and use it, but remember to initialize this variable BEFORE DO YourMenu somethig like that:


nMenuFontSize = 12

DEFINE BAR _mfi_save OF _medit  PROMPT "\<Save" ;
    FONT "Arial", nMenuFontSize ;
    KEY CTRL+S, "Ctrl+S" ;
    PICTRES _mfi_save ;
    MESSAGE "Saves changes to the current file"
DEFINE BAR _mfi_savas OF _medit  PROMPT "Save \<As..." ;
    PICTRES _mfi_savas ;
    FONT "Arial", nMenuFontSize ;
    MESSAGE "Saves changes to the current file with a new name"


Borislav Borissov

RE: changing Windows menu font size from VFP

VFP8 Help says:
"The FONT clause is ignored for menu titles added to the Visual FoxPro system menu _MSYSMENU".
So... how i change the size of the _MSYSMENU?

RE: changing Windows menu font size from VFP

There is no way to change _MSYSMENU FontSize, if you don't use API to Change The Menu font for whole Windows. But As I said I  personaly don't want to mess with system setting of the Windows, For your information check:
This is function writen for Caption font, but it can be easy modified for Menu one.

Borislav Borissov

RE: changing Windows menu font size from VFP

Don't do this. As others have said, the user changes the font size in Windows Display Settings and Windows UI Guidelines state you should leave it alone. Your changes will affect all Windows applications.

Craig Berntson
MCSD, Visual FoxPro MVP, www.craigberntson.com
Author, CrysDev: A Developer's Guide to Integrating Crystal Reports"

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close