RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMenuItem.RethinkLines Method

Removes superfluous separator lines from the Items property array.

Pascal
function RethinkLines: Boolean;
C++
__fastcall Boolean RethinkLines();

Call RethinkLines to remove superfluous separators from the items in the Items property and in any submenu of those items. RethinkLines removes separators that appear at the very beginning or end of a submenu and separators that immediately follow another separator. 

RethinkLines lets a menu remove superfluous separators when the AutoLineReduction property is false. For any menu or submenu that has AutoLineReduction set to true, this adjustment occurs automatically. 

RethinkLines returns true if RethinkLines removed any menu items, false otherwise. 

 

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