Class TCastleAbstractSlider
Unit
Declaration
type TCastleAbstractSlider = class(TCastleUserInterfaceFont)
Description
An abstract slider user interface. Usually you want to use of its descendants, like TCastleFloatSlider or TCastleIntegerSlider.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleUserInterface
- TCastleUserInterfaceFont
- TCastleAbstractSlider
Overview
Fields
nested const DefaultSliderWidth = 200; |
|
nested const DefaultSliderHeight = 20; |
Methods
constructor Create(AOwner: TComponent); override; |
|
procedure Render; override; |
|
procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override; |
Properties
property Width default DefaultSliderWidth; |
|
property Height default DefaultSliderHeight; |
|
property SmallFont default true; |
|
property DisplayValue: boolean
read FDisplayValue write FDisplayValue default true; |
|
property Caption: string read FCaption write SetCaption; |
|
property OnChange: TNotifyEvent read FOnChange write FOnChange; |
Description
Fields
nested const DefaultSliderWidth = 200; |
|
nested const DefaultSliderHeight = 20; |
|
Methods
constructor Create(AOwner: TComponent); override; |
|
procedure Render; override; |
|
procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override; |
|
Properties
property Width default DefaultSliderWidth; |
|
property Height default DefaultSliderHeight; |
|
property SmallFont default true; |
|
property DisplayValue: boolean
read FDisplayValue write FDisplayValue default true; |
|
Display the current value as text on the slider, right next to the Caption. The exact method to display is defined by method TCastleFloatSlider.ValueToStr or TCastleIntegerSlider.ValueToStr (depending on descendant), so you can further customize it. |
property Caption: string read FCaption write SetCaption; |
|
Displayed on the slider. Right before value, if DisplayValue. |
property OnChange: TNotifyEvent read FOnChange write FOnChange; |
|
Generated by PasDoc 0.16.0.