FMX.TreeView.TCustomTreeView.ViewportPositionChange
Delphi
procedure ViewportPositionChange(const OldViewportPosition, NewViewportPosition: TPointF;
const ContentSizeChanged: Boolean); override;
C++
virtual void __fastcall ViewportPositionChange(const System::Types::TPointF &OldViewportPosition, const System::Types::TPointF &NewViewportPosition, const bool ContentSizeChanged);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
protected | FMX.TreeView.pas FMX.TreeView.hpp |
FMX.TreeView | TCustomTreeView |
Description
Executed when the viewport position changes.
FMX.TreeView.TCustomTreeView.ViewportPositionChange inherits from FMX.Layouts.TCustomScrollBox.ViewportPositionChange. All content below this line refers to FMX.Layouts.TCustomScrollBox.ViewportPositionChange.
Executed when the viewport position changes.
ViewportPositionChange receives the following parameters:
OldViewportPositionis the value that the ViewportPosition property had before it changed.NewViewportPositionis the new value of the ViewportPosition property.ContentSizeChangedindicates whether the size of the content of the viewport has changed as well (True) or not (False).
ViewportPositionChange calls the handler of the OnViewportPositionChange event.