Class TCastleIntegerSlider
Unit
Declaration
type TCastleIntegerSlider = class(TCastleAbstractSlider)
Description
Slider to change an integer value within a given range.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleUserInterface
- TCastleUserInterfaceFont
- TCastleAbstractSlider
- TCastleIntegerSlider
Overview
Fields
nested const DefaultMin = 0; |
|
nested const DefaultMax = 10; |
Methods
constructor Create(AOwner: TComponent); overload; override; |
|
constructor Create(AOwner: TComponent; const ValuePointer: PInteger; const AMin, AMax: Integer; const AOnChange: TNotifyEvent); reintroduce; overload; |
|
procedure Render; override; |
|
function Press(const Event: TInputPressRelease): boolean; override; |
|
function Motion(const Event: TInputMotion): boolean; override; |
|
function ValueToStr(const AValue: Integer): string; virtual; |
Properties
property Min: Integer read FMin write SetMin default DefaultMin; |
|
property Max: Integer read FMax write SetMax default DefaultMax; |
|
property Value: Integer read FValue write SetValue default DefaultMin; |
Description
Fields
nested const DefaultMin = 0; |
|
nested const DefaultMax = 10; |
|
Methods
constructor Create(AOwner: TComponent); overload; override; |
|
constructor Create(AOwner: TComponent; const ValuePointer: PInteger; const AMin, AMax: Integer; const AOnChange: TNotifyEvent); reintroduce; overload; |
|
An easy way to construct integer slider. |
procedure Render; override; |
|
function Press(const Event: TInputPressRelease): boolean; override; |
|
function Motion(const Event: TInputMotion): boolean; override; |
|
function ValueToStr(const AValue: Integer): string; virtual; |
|
Properties
property Min: Integer read FMin write SetMin default DefaultMin; |
|
property Max: Integer read FMax write SetMax default DefaultMax; |
|
property Value: Integer read FValue write SetValue default DefaultMin; |
|
Current value. Usually within Min and Max range, although the general code should be ready for handle any value here (to work even during changes to Min and Max properties). |
Generated by PasDoc 0.16.0.