Class TCastleIntegerSlider

Unit

Declaration

type TCastleIntegerSlider = class(TCastleAbstractSlider)

Description

Slider to change an integer value within a given range.

Hierarchy

Overview

Fields

Public nested const DefaultMin = 0;
Public nested const DefaultMax = 10;

Methods

Public constructor Create(AOwner: TComponent); override;
Public constructor Create(AOwner: TComponent; const ValuePointer: PInteger; const AMin, AMax: Integer; const AOnChange: TNotifyEvent);
Public procedure Render; override;
Public function Press(const Event: TInputPressRelease): boolean; override;
Public function Motion(const Event: TInputMotion): boolean; override;
Public function ValueToStr(const AValue: Integer): string; virtual;

Properties

Published property Min: Integer read FMin write SetMin default DefaultMin;
Published property Max: Integer read FMax write SetMax default DefaultMax;
Published property Value: Integer read FValue write SetValue default DefaultMin;

Description

Fields

Public nested const DefaultMin = 0;
 
Public nested const DefaultMax = 10;
 

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public constructor Create(AOwner: TComponent; const ValuePointer: PInteger; const AMin, AMax: Integer; const AOnChange: TNotifyEvent);

An easy way to construct integer slider.

Public procedure Render; override;
 
Public function Press(const Event: TInputPressRelease): boolean; override;
 
Public function Motion(const Event: TInputMotion): boolean; override;
 
Public function ValueToStr(const AValue: Integer): string; virtual;
 

Properties

Published property Min: Integer read FMin write SetMin default DefaultMin;
 
Published property Max: Integer read FMax write SetMax default DefaultMax;
 
Published 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.