Sign in Join
FPDoc Onlineexperiment

TCustomControlBar.MoveBand procedure

Member of TCustomControlBarprotectedIn unit ExtCtrls

Performs actions needed when a band is moved to new position.

Declaration

pascal
procedure MoveBand(AMoveBand: TCtrlBand; X: Integer; Y: Integer; 
 ByMouse: Boolean)

Arguments

AMoveBand

TCtrlBand instance moved in the method.

X

Horizontal coordinate for the mouse pointer.

Y

Vertical coordinate for the mouse pointer.

ByMouseTrue if the mouse cursor is changed to the cdGrabber shape prior to moving the specified band on the control.

Description

MoveBand determines the new position for a band moved using the mouse or by setting its coordinates. Rearranges adjacent bands (and rows) as needed. The DoBandMove method is called to signal the OnBandMove event handler (when assigned).

MoveBand is called from the MouseMove method, and occurs after the DragManager has started the drag operation for the control. It is also used in the CheckBandsSizeAndVisibility method, where it is called after visible bands have been sorted and normalized.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.