Vcl.ExtCtrls.TCustomControlBar.GetControlInfo

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure GetControlInfo(AControl: TControl; var Insets: TRect;  var PreferredSize, RowCount: Integer); virtual;

C++

virtual void __fastcall GetControlInfo(Vcl::Controls::TControl* AControl, System::Types::TRect &Insets, int &PreferredSize, int &RowCount);

Properties

Type Visibility Source Unit Parent
procedure
function
protected
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls TCustomControlBar

Description

Generates an OnBandInfo event.

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.

See Also