Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

Join Tek-Tips
*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.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

changing Windows menu font size from VFP

tsilviu (Programmer) (OP)
16 Jun 05 3:58
Hi!
I wanna change the Windows menu font size from VFP. How is possible?
Thanks!
bborissov (Programmer)
16 Jun 05 4:32
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:

CODE

nMenuFontSize = 12

DEFINE POPUP _medit MARGIN RELATIVE SHADOW COLOR SCHEME 4 FONT "Arial", nMenuFontSize
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

tsilviu (Programmer) (OP)
16 Jun 05 4:43
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?

bborissov (Programmer)
16 Jun 05 6:25
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:
http://www.universalthread.com/wconnect/wc.dll?LevelExtreme~2,84,14,7959
This is function writen for Caption font, but it can be easy modified for Menu one.

Borislav Borissov

craigber (Programmer)
16 Jun 05 8:36
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"

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!

Back To Forum

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