RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStandardMenuItem.DrawGlyph Method

Draws a symbol on the menu item.

Pascal
procedure DrawGlyph(const Location: TPoint); override;
C++
virtual __fastcall DrawGlyph(const TPoint Location);

DrawGlyph is called automatically when the menu item needs to render its glyph. This occurs if the menu item is checked or if the associated action client item specifies a glyph for this menu item using its ImageIndex property. 

Location is the position on this menu item's canvas for the upper left corner of the glyph. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!