Class TCastleScrollViewManual
Unit
CastleControls
Declaration
type TCastleScrollViewManual = class(TCastleScrollViewCustom)
Description
Control with a scrollbar. This user interface control shows a vertical scrollbar on the right side, and allows to operate on it using keyboard, mouse, touch.
The scrollbar automatically doesn't affect anything (hence the name of this class contains the word "manual"). You need to assign OnChange event to react to the scrollbar dragging to actually do something. Usually you also want to adjust PageSize and CompleteSize.
If you want to easily scroll a tall user interface contents, it is easier to use TCastleScrollView than this control.
Hierarchy
Overview
Fields
Methods
Properties
Description
Fields
|
nested const DefaultPageSize = 1; |
|
|
nested const DefaultCompleteSize = 10; |
|
Methods
|
function GetPageSize: Single; override; |
|
|
function GetCompleteSize: Single; override; |
|
|
procedure DoScrollChange; override; |
|
|
constructor Create(AOwner: TComponent); override; |
|
Properties
|
property OnChange: TNotifyEvent read FOnChange write FOnChange; |
Event sent when Scroll value was changed, in any way.
|
|
property PageSize: Single read GetPageSize write SetPageSize default DefaultPageSize; |
How much Scroll is represented by the height of the scrollbar slider. Among other things, this determines how much Scroll changes in response to Page Up and Page Down keys.
|
Generated by PasDoc 0.16.0.