amin84 Posted December 17, 2010 Posted December 17, 2010 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:Is there anyway to change the font of a MenuItem?Any help is appreciated.Tnx.
amin84 Posted January 10, 2011 Author Posted January 10, 2011 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.
Zedna Posted January 10, 2011 Posted January 10, 2011 Look here Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now