Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomTreeList.OnLeftPosChanged Event

In This Article

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

#Declaration

Delphi
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.

Delphi
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