The MASM Forum Archive 2004 to 2012

Project Support Forums => IDE Development and Support => RadAsm Support Forum => Topic started by: Shantanu Gadgil on April 19, 2005, 06:33:17 PM

Title: menu font problem
Post by: Shantanu Gadgil on April 19, 2005, 06:33:17 PM
After setting the fonts for the dialogs etc to Tahoma, the menus still are in MS Sans Serif.

Is it possible to change the menu font ? (Is it already possible and am I missing it ??? :( )

In the "Font Options" dialog, is it possible to see the name of the selected font along with the sample ?
Also could you make the dialog such that it can't be resized such that the text is not visible ?
Title: Re: menu font problem
Post by: KetilO on April 19, 2005, 07:34:33 PM
Hi

In AlexMenu addin:


invoke GetStockObject,DEFAULT_GUI_FONT
invoke SelectObject,mDC,eax


It should be an easy task to use another font.

KetilO
Title: Re: menu font problem
Post by: Shantanu Gadgil on April 20, 2005, 09:03:36 AM
yes, if I switch AlexiMenu off, the menus look fine !!!
Title: Re: menu font problem
Post by: KetilO on April 20, 2005, 10:25:21 AM
Hi shantanu_gadgil

Do you know a way to get the font used on menus on XP?

KetilO
Title: Re: menu font problem
Post by: Shantanu Gadgil on April 22, 2005, 07:04:38 PM
> Do you know a way to get the font used on menus on XP?
No...but the menu  is a "child" of the RadASM main window, right ? So why not use the same font ?
Title: Re: menu font problem
Post by: lamer on April 24, 2005, 03:14:06 PM
Quote from: KetilO on April 20, 2005, 10:25:21 AM
Do you know a way to get the font used on menus on XP?
What about:

LOCAL ncm:NONCLIENTMETRICS
...
mov ncm.cbSize,sizeof NONCLIENTMETRICS
invoke SystemParametersInfo,SPI_GETNONCLIENTMETRICS,sizeof NONCLIENTMETRICS,addr ncm,0
invoke CreateFontIndirect,addr ncm.lfMenuFont
...
Title: Re: menu font problem
Post by: KetilO on April 25, 2005, 08:02:48 AM
Thanks,

Just what I was looking for.

KetilO