API:FMX.ListBox.TCustomListBox.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.ListBox.pas FMX.ListBox.hpp |
FMX.ListBox | TCustomListBox |
Description
Executed when the viewport position changes.
FMX.ListBox.TCustomListBox.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:
OldViewportPosition
is the value that the ViewportPosition property had before it changed.NewViewportPosition
is the new value of the ViewportPosition property.ContentSizeChanged
indicates 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.