News:

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

Menu Font

Started by msmith, June 04, 2006, 01:17:50 AM

Previous topic - Next topic

msmith

What is the proper way to change a menu font?

Tedd

My first guess would've been SetMenuItemInfo, or osmething similar, but that doesn't appear to be it.
WM_SETFONT doesn't appear to do anything either.
My only other suggestions would have to be to create an owner-drawn menu.
No snowflake in an avalanche feels responsible.

msmith

I tried evey variation of WM_SETFONT and had no luck either.

hutch--

With a normal font its a system variable rather than a local app variable so I don't see you have an easy path to do this.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

msmith

Is it one of the things you can do with owner drawn menus?

Tedd

With an owner-drawn menu (or any control) you draw the whole thing yourself, so you can draw it with whichever font you like, in whatever colours you like, etc..
The problem is you have to handle all of the messages and draw the selection, state, etc. So it's not simply a small amount of work.
No snowflake in an avalanche feels responsible.

msmith

I was afraid of that. I will eventually get to owner drawn menus, but its not a priority right now.

zooba

Have a look at some of the custom menu controls available, like MenuWOW (do a forum search). I'm sure one of these will allow you to specify a font, as well as do much more :U

Cheers,

Zooba (totally unaffliated with any custom menu control :U )

msmith

Hi zooba,

I looked at using MenuWow a few months ago and it looked good, but as I recall, it works with menus created from resources wheareas mine are inline code generated. If I could use MenuWow without resources, I almost certainly would.

Mike