[Overview][Types][Classes][Procedures and functions][Index] Reference for unit 'ExtCtrls' (#lcl)

TBandInfoEvent

Specifies an event handler used to get layout and positioning information for a control on a band in TControlBar.

Declaration

Source position: extctrls.pp line 1466

type TBandInfoEvent = procedure(

  Sender: TObject;

  Control: TControl;

  var Insets: TRect;

  var PreferredSize: Integer;

  var RowCount: Integer

) of object;

Arguments

Sender

  

Object (TCustomControlBar) for the notification event.

Control

  

Control for the event notification.

Insets

  

Bounds rectangle for the specified control.

PreferredSize

  

Default width for the control on entry. Can be updated in the handler routine.

RowCount

  

Number of rows that can be displayed based on the Height and RowSize for the control bar.

Description

TBandInfo is the type used to implement the OnBandInfo event handler in TCustomControlBar.

See also

TCustomControlBar.OnBandInfo

  

Event handler signalled to get the insets rectangles, preferred size, and row count for the control bar.

TCustomControlBar.GetControlInfo

  

Signals the OnBandInfo event handler to store control information to the arguments for the method.

TCustomControlBar.InsertControl

  

Creates and stores a new band for the specified control.


Version 3.2 Generated 2024-02-25 Home