[Lazarus] Custom draw menu

Sergei Gorelkin sergei_gorelkin at mail.ru
Sun Nov 7 03:56:55 CET 2010


Graeme Geldenhuys пишет:
> 
> OK, so that explains menu items (as in the items in dropdown menus or
> popup menus), but that doesn't explain the TMainMenu bar. Nobody puts
> images in those (well no app I have ever seen in the last 15 years),
> and that's the component two bug reports were raised about, in two
> different windows versions.
> 
Which bug reports? I fail to find something related in Lazarus bugtracker, although I may be using 
wrong keywords.

I remember some UI design guide from M$, telling not to put images in menubars.
Maybe everyone is just following that guide :-)
Anyway, 'native' glyph support actually maps to Bitmap property of TMenuItem, and 
ImageList+ImageIndex properties map to custom draw (yes WinAPI requires a separate bitmap handle for 
every item).

Regards,
Sergei




More information about the Lazarus mailing list