RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TStandardMenuItem.DrawSeparator Method

Draws a separator.

Pascal
procedure DrawSeparator(const Offset: Integer); override;
C++
virtual __fastcall DrawSeparator(const int Offset);

DrawSeparator is called automatically when the menu item represents a separator bar in the menu and it needs to paint itself. This method paints the separator bar. 

Offset indicates the offset of the separator, in pixels, from the top of the menu item. DrawSeparator ignores this value and always uses a fixed value for menu items. 

 

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