开发者

StandardColorMap in MainMenu

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

P.开发者_运维技巧S. I am programming with delphi 2007


first create the menuitems. then you have to use the canvas given by the OnDrawItem event of the menuItems (here'is a good explanation and use case).
one idea is to store the TColor value as integer in the Tag property. Then when OnClick is triggered, the color selected is the one in the Tag of the Sender, which is a TMenuItem.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜