Vcl.ExtCtrls.TBandInfoEvent

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

TBandInfoEvent = procedure (Sender: TObject; Control: TControl;
var Insets: TRect; var PreferredSize, RowCount: Integer) of object;

C++

typedef void __fastcall (__closure *TBandInfoEvent)(System::TObject* Sender, Vcl::Controls::TControl* Control, System::Types::TRect &Insets, int &PreferredSize, int &RowCount);

Properties

Type Visibility Source Unit Parent
type
typedef
public
Vcl.ExtCtrls.pas
Vcl.ExtCtrls.hpp
Vcl.ExtCtrls Vcl.ExtCtrls

Description

TBandInfoEvent is the type of a band's Vcl.ExtCtrls.TCustomControlBar.OnBandInfo and Vcl.ExtCtrls.TCustomControlBar.OnBandInfo event handlers.

Sender is the control bar containing the band.

Control is the control on the band that is moved (usually a TToolBar object).

Insets is the margin between the edges of the control and the edges of its band. This value can be adjusted by the event handler.

PreferredSize is the band’s preferred width. (The band’s width will be reduced if it can’t fit inside the control bar.) This value can be adjusted by the event handler.

RowCount is the number of control rows that the band spans in the control bar. This value can be adjusted by the event handler.

See Also