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

Overview

Fields

Public nested const DefaultSliderWidth = 200;
Public nested const DefaultSliderHeight = 20;

Methods

Public constructor Create(AOwner: TComponent); override;
Public procedure Render; override;
Public procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override;

Properties

Published property Width default DefaultSliderWidth;
Published property Height default DefaultSliderHeight;
Published property SmallFont default true;
Published property DisplayValue: boolean read FDisplayValue write FDisplayValue default true;
Published property Caption: string read FCaption write SetCaption;
Published property OnChange: TNotifyEvent read FOnChange write FOnChange;

Description

Fields

Public nested const DefaultSliderWidth = 200;
 
Public nested const DefaultSliderHeight = 20;
 

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public procedure Render; override;
 
Public procedure Update(const SecondsPassed: Single; var HandleInput: boolean); override;
 

Properties

Published property Width default DefaultSliderWidth;
 
Published property Height default DefaultSliderHeight;
 
Published property SmallFont default true;
 
Published 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.

Published property Caption: string read FCaption write SetCaption;

Displayed on the slider. Right before value, if DisplayValue.

Published property OnChange: TNotifyEvent read FOnChange write FOnChange;
 

Generated by PasDoc 0.16.0.