Class TGUISpinBox

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TGUISpinBox = class(TGUIElement)

Description

Single line edit box + spin buttons.

Hierarchy

Overview

Methods

Public function GetEditBox: TGUIEditBox; inline;
Public procedure SetDecimalPlaces(NPlaces: LongInt); inline;
Public procedure SetRange(NMin, NMax: Single); inline;

Properties

Public property Maximum: Single read GetMax write SetMax;
Public property Minimum: Single read GetMin write SetMin;
Public property StepSize: Single read GetStepSize write SetStepSize;
Public property Value: Single read GetValue write SetValue;

Description

Methods

Public function GetEditBox: TGUIEditBox; inline;

Accesses the edit box used in the spin control.

Public procedure SetDecimalPlaces(NPlaces: LongInt); inline;

Sets the number of decimal places to display.

Parameters
NPlaces:
The number of decimal places to display, or -1 to reset
Public procedure SetRange(NMin, NMax: Single); inline;

Sets both Minimum and Maximum.

Parameters
NMin
The new Minimum value.
NMax
The new Maximum value.

Properties

Public property Maximum: Single read GetMax write SetMax;

The maximum value the spin box can contain.

Public property Minimum: Single read GetMin write SetMin;

The minimum value the spin box can contain.

Public property StepSize: Single read GetStepSize write SetStepSize;

Step size by which values are changed when pressing the spinbuttons.
The step size also determines the number of decimal places to display.

Public property Value: Single read GetValue write SetValue;

The current value of the spin box.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22