OwnerDraw Menus :(
Adam Starkey <[email protected]> Wed, 28 Aug 2002 10:48:21 -0500
| Newsgroups | gmane.comp.lang.delphi.kylix |
|---|---|
| Message-ID | <[email protected]> |
OK, I hope I'm just doing something horribly stupid, and this isn't a CLX bug, 'cos I need this to work: I'm overriding the standard menudraw functions, namely: Application.Style.BeforeDrawMenuItem Application.Style.MenuItemHeight Application.Style.ExtraMenuItemWidth Application.Style.DrawMenuFrame Application.Style.DrawMenuCheck I seem to be having problems with sub menus though. What seems to be happening is that CLX gives me a menu box size that it has decided fits my needs. In principal this is fine (although I would like the ability to choose my own menu box size entirely), but for some reason the box area that it gives me for sub menus is always has the height that the default menu would be drawn with. So even if I have set menuitem height to 30 pixels, it still gives me a box sized for menu items with a height of 12 (or whatever the default is). The parent menu cavas on the other hand seems to be sensibly proportioned. On the subject of menus, why is it that changing the forms' font size has no effect on the font size in menus? Is there anyway to change the font size of a menu without using ownerdraw? -- adam