Class TCastleScrollViewManual
Unit
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
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleUserInterface
- TCastleScrollViewCustom
- TCastleScrollViewManual
Overview
Fields
nested const DefaultPageSize = 1; |
|
nested const DefaultCompleteSize = 10; |
Methods
function GetPageSize: Single; override; |
|
function GetCompleteSize: Single; override; |
|
procedure DoScrollChange; override; |
|
function GetScroll: Single; override; |
|
procedure SetScroll(Value: Single); override; |
|
function GetScrollStored: Boolean; override; |
|
constructor Create(AOwner: TComponent); override; |
Properties
property OnChange: TNotifyEvent read FOnChange write FOnChange; |
|
property PageSize: Single read GetPageSize write SetPageSize default DefaultPageSize; |
|
property CompleteSize: Single read GetCompleteSize write SetCompleteSize default DefaultCompleteSize; |
Description
Fields
nested const DefaultPageSize = 1; |
|
This item has no description. |
nested const DefaultCompleteSize = 10; |
|
This item has no description. |
Methods
function GetPageSize: Single; override; |
|
This item has no description. Showing description inherited from TCastleScrollViewCustom.GetPageSize. 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. |
function GetCompleteSize: Single; override; |
|
This item has no description. Showing description inherited from TCastleScrollViewCustom.GetCompleteSize. How much Scroll is represented by the height of the entire scrollbar (that is, the height of this TCastleScrollViewCustom instance). |
procedure DoScrollChange; override; |
|
This item has no description. |
function GetScroll: Single; override; |
|
This item has no description. |
procedure SetScroll(Value: Single); override; |
|
This item has no description. |
function GetScrollStored: Boolean; override; |
|
This item has no description. |
constructor Create(AOwner: TComponent); override; |
|
This item has no description. |
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. |
property CompleteSize: Single read GetCompleteSize write SetCompleteSize default DefaultCompleteSize; |
|
How much Scroll is represented by the height of the entire scrollbar (that is, the height of this TCastleScrollViewCustom instance). |
Generated by PasDoc 0.16.0-snapshot.