Class TCastleIntegerSlider
Unit
CastleControls
Declaration
type TCastleIntegerSlider = class(TCastleAbstractSlider)
Description
Slider to change an integer value within a given range.
Hierarchy
Overview
Fields
Methods
 |
constructor Create(AOwner: TComponent); override; |
 |
constructor Create(AOwner: TComponent; const ValuePointer: PInteger; const AMin, AMax: Integer; const AOnChange: TNotifyEvent); |
 |
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
Description
Fields
 |
internal const DefaultMin = 0; |
|
 |
internal const DefaultMax = 10; |
|
Methods
 |
constructor Create(AOwner: TComponent); override; |
|
 |
constructor Create(AOwner: TComponent; const ValuePointer: PInteger; const AMin, AMax: Integer; const AOnChange: TNotifyEvent); |
An easy way to construct integer slider.
|
 |
procedure Render; 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.15.0.
|