News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

menu font problem

Started by Shantanu Gadgil, April 19, 2005, 06:33:17 PM

Previous topic - Next topic

Shantanu Gadgil

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 ?
To ret is human, to jmp divine!

KetilO

Hi

In AlexMenu addin:


invoke GetStockObject,DEFAULT_GUI_FONT
invoke SelectObject,mDC,eax


It should be an easy task to use another font.

KetilO

Shantanu Gadgil

yes, if I switch AlexiMenu off, the menus look fine !!!
To ret is human, to jmp divine!

KetilO

Hi shantanu_gadgil

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

KetilO

Shantanu Gadgil

> 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 ?
To ret is human, to jmp divine!

lamer

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
...

KetilO

Thanks,

Just what I was looking for.

KetilO