StandardColorMap in MainMenu

Hey guys. I have a problem with StandardColorMap and MainMenu. I need to create a ColorMap in one submenu. How to do it?

PS I am programming with delphi 2007

+2


source to share


1 answer


first create the menu items. then you need to use the canvas set by the OnDrawItem event for the menu items ( here's a good explanation and example of use ).
one idea is to store the TColor value as an integer in the Tag property. Then, when OnClick is triggered, the selected color is that of the sender tag, which is TMenuItem.



0


source







All Articles