Class TMenuIntegerSlider

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TMenuIntegerSlider = class(TMenuSlider)

Description

no description available, TMenuSlider description follows
no description available, TMenuAccessory description follows

Attachment to a specific menu item of TCastleOnScreenMenu, for example may store a value associated with given menu option, and allow to change it by a slider.

Hierarchy

Overview

Methods

Public constructor Create(const ABeginRange, AEndRange, AValue: Integer);
Public procedure Draw(const Rectangle: TRectangle); override;
Public function KeyDown(Key: TKey; C: char; ParentMenu: TCastleOnScreenMenu): boolean; override;
Public function MouseDown(const MouseX, MouseY: Integer; Button: TMouseButton; const Rectangle: TRectangle; ParentMenu: TCastleOnScreenMenu): boolean; override;
Public procedure MouseMove(const NewX, NewY: Integer; const MousePressed: TMouseButtons; const Rectangle: TRectangle; ParentMenu: TCastleOnScreenMenu); override;
Public function ValueToStr(const AValue: Integer): string; virtual;

Properties

Public property BeginRange: Integer read FBeginRange;
Public property EndRange: Integer read FEndRange;
Public property Value: Integer read FValue write FValue;

Description

Methods

Public constructor Create(const ABeginRange, AEndRange, AValue: Integer);
 
Public procedure Draw(const Rectangle: TRectangle); override;
 
Public function KeyDown(Key: TKey; C: char; ParentMenu: TCastleOnScreenMenu): boolean; override;
 
Public function MouseDown(const MouseX, MouseY: Integer; Button: TMouseButton; const Rectangle: TRectangle; ParentMenu: TCastleOnScreenMenu): boolean; override;
 
Public procedure MouseMove(const NewX, NewY: Integer; const MousePressed: TMouseButtons; const Rectangle: TRectangle; ParentMenu: TCastleOnScreenMenu); override;
 
Public function ValueToStr(const AValue: Integer): string; virtual;
 

Properties

Public property BeginRange: Integer read FBeginRange;
 
Public property EndRange: Integer read FEndRange;
 
Public property Value: Integer read FValue write FValue;

Current value. When setting this property, always make sure that it's within the allowed range.


Generated by PasDoc 0.12.1 on 2013-02-04 20:26:51