Jump to content

Changing The Font on the GUICtrlCreateMenu


amin84
 Share

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.

Tnx.

Link to comment
Share on other sites

  • 4 weeks later...

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)
EndFunc

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...