Jump to content
Sign in to follow this  

Changing The Font on the GUICtrlCreateMenu

Recommended Posts


Hi, I was wondering if it is possible to change the font of the menu items/sub menu items.

Default Persian font in windows is VERY BAD so I changed the whole GUI to Tahoma but I can't change the font of menuItems to Tahoma. Here is a picture of what I mean:

Posted Image

Is there anyway to change the font of a MenuItem?

Any help is appreciated.


Share this post

Link to post
Share on other sites

I found the code to change the status bar font:

Func _GUICtrlStatusBar_SetFont($hWnd, $iHeight = 15, $iWeight = 400, $iFontAtrributes = 0, $sFontName = "Tahoma")
    $hFont = _WinAPI_CreateFont($iHeight, 0, 0, 0, $iWeight, BitAND($iFontAtrributes, 2), BitAND($iFontAtrributes, 4), _
                                BitAND($iFontAtrributes, 8), $DEFAULT_CHARSET, $OUT_DEFAULT_PRECIS, $CLIP_DEFAULT_PRECIS, _
                                $DEFAULT_QUALITY, 0, $sFontName)
    _SendMessage($hWnd, $WM_SETFONT, $hFont, 1)

I haven't figured out how to change the menu bar font.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.