02-26-2003, 10:18 PM
I asked this question before, but I'll try again...
Can someone show me a simple example of how to change the menu font on VB forms? Surely this isn't as complicated as the "ownerdesign" theorists would have us believe, right? Are we really stuck with the default font and size?
Cheers to all.
02-26-2003, 10:39 PM
You can use ModifyMenu api and a bmp, but you have no control over sizes like owner-drawn.
02-26-2003, 10:43 PM
any simple examples out there?:confused:
02-26-2003, 10:54 PM
If you don't feel like messing with hDCs, then do your drawing on a picturebox (picture1.print "foo") then save it into an array of Picture objects. You'll need one picture object per menu item, so use an array of them. Those picture objects need to persist for the life of the exe.
Here is a snippet:
MenuId = GetMenuItemID(hSubMenu, Index) 'Get the MenuID for this item index.
ModifyMenu hMenu, MenuId, MF_BITMAP, MenuId, vPic(Index).Handle
02-27-2003, 07:16 AM
Surely this isn't as complicated as the "ownerdesign" theorists would have us believe, right?
Yep. That's what we're all trying to do. Make it needlessly complicated. We love doing extra work for no reason at all. :-\
Of course it doesn't matter that some of us have gone out of our way and given up our own time and source code to people like you so you can just drop it into you project and hit "run". :rolleyes:
02-28-2003, 06:39 PM
Personally there is no need to be * * * * *y about it.
I get more pleasure in helping others than I do coding sometimes. In the end thats what its all about and if you dont want to do it there is no point in being in the forum.