Skip to main content

TcxCustomTreeList.OnLeftPosChanged Event

Enables you to respond when the current tree list is horizontally scrolled, either by keyboard navigation or by moving the horizontal scrollbar.

Declaration

property OnLeftPosChanged: TNotifyEvent read; write;

Remarks

Sender specifies the tree list.

You can handle this event to synchronize horizontal scrolling within the tree list and other controls. The following code snippet demonstrates how this can be accomplished for the tree list and the ExpressQuantumGrid’s Table View.

type
  TcxCustomTreeListAccess = class(TcxCustomTreeList);
procedure <Form>.<TreeList>LeftPosChanged(Sender: TObject);
begin
  // Synchronize the left visible position of the controls
  <GridTableView>.Controller.LeftPos := TcxCustomTreeListAccess(<TreeList>).Controller.LeftPos;
end;
See Also