Class TCastleAbstractSlider
Unit
Declaration
type TCastleAbstractSlider = class(TCastleUserInterfaceFont)
Description
An abstract slider user interface. You actually want to use one of its descendants: TCastleFloatSlider or TCastleIntegerSlider.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleUserInterface
- TCastleUserInterfaceFont
- TCastleAbstractSlider
Overview
Fields
![]() |
nested const DefaultSliderWidth = 200; |
![]() |
nested const DefaultSliderHeight = 30; |
Methods
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
procedure Render; override; |
![]() |
procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override; |
![]() |
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
![]() |
property TextColor: TCastleColor read FTextColor write SetTextColor; |
![]() |
property Width default DefaultSliderWidth; |
![]() |
property Height default DefaultSliderHeight; |
![]() |
property DisplayValue: boolean
read FDisplayValue write FDisplayValue default true; |
![]() |
property Caption: String read FCaption write SetCaption; |
![]() |
property OnChange: TNotifyEvent read FOnChange write FOnChange; |
![]() |
property Background: TCastleImagePersistent read FBackground; |
![]() |
property Thumb: TCastleImagePersistent read FThumb; |
![]() |
property TextColorPersistent: TCastleColorPersistent read FTextColorPersistent ; |
Description
Fields
![]() |
nested const DefaultSliderWidth = 200; |
![]() |
nested const DefaultSliderHeight = 30; |
Methods
![]() |
constructor Create(AOwner: TComponent); override; |
![]() |
destructor Destroy; override; |
![]() |
procedure Render; override; |
![]() |
procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override; |
![]() |
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
![]() |
property TextColor: TCastleColor read FTextColor write SetTextColor; |
Color of the label. By default opaque black. |
![]() |
property Width default DefaultSliderWidth; |
![]() |
property Height default DefaultSliderHeight; |
![]() |
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; |
Called when value (like TCastleFloatSlider.Value or TCastleIntegerSlider.Value) changed because of user interaction (but not when it was changed by code setting the property). |
![]() |
property Background: TCastleImagePersistent read FBackground; |
Background image that fills the entire slider area. |
![]() |
property Thumb: TCastleImagePersistent read FThumb; |
|
![]() |
property TextColorPersistent: TCastleColorPersistent read FTextColorPersistent ; |
TextColor that can be visually edited in Castle Game Engine Editor, Lazarus and Delphi. Normal user code does not need to deal with this, instead read or write TextColor directly. See also
|
Generated by PasDoc 0.16.0.