RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomControlBar.GetControlInfo Method

Generates an OnBandInfo event.

Pascal
procedure GetControlInfo(AControl: TControl; var Insets: TRect; var PreferredSize: Integer; var RowCount: Integer); virtual;
C++
virtual __fastcall GetControlInfo(TControl * AControl, TRect Insets, int PreferredSize, int RowCount);

GetControlInfo is called automatically when the control bar needs to arrange the position of its bands. It generates an OnBandInfo event to obtain information about a control band. 

AControl is the control associated with the band being positioned. 

Insets returns the margin between the edges of the control and the edges of its band. 

PreferredSize returns the control's preferred width. (The control's width is reduced if it can't fit inside the control bar.) 

RowCount returns the number of control rows that the control spans in the control bar. 

 

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