Unit 'MUIClass.Numeric' Package
[Overview][Classes][Index] [#MUIClass]

TMUINumeric

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Numeric class is the base class for everything that deals with the input (and display) of integer numbers.

Declaration

Source position: MUIClass.Numeric.pas line 12

type TMUINumeric = class(TMUIArea)

protected

  procedure GetCreateTags(); override;

  

Fill TagList for MUI item creation

  procedure AfterCreateObject; override;

  

Connect Events after the MUI item is created

public

  constructor Create; override;

  

Create a Numeric object

  procedure CreateObject; override;

  

Create the MUI item

  procedure Decrease;

  

Decrease the value of a numeric class object.

  procedure Increase;

  

Increase the value of a numeric class object.

  function ScaleToValue();

  

This method takes the given sale values and transforms them to something between the numeric objects min and max values.

  function Stringify();

  

Translate a Value to a string

  function ValueToScale();

  

This method takes the current value of the numeric object and transforms it to another scale determined by the parameters.

published

  property CheckAllSizes: Boolean; [rw]

  

Calculate the needed space for all possible Values.

  property Default: Integer; [rw]

  

Adjust the default value for a numeric input/display gadget.s

  property Format: string; [rw]

  

printf-style string to describe the format of the slider display.

  property Min: Integer; [rw]

  

Adjust the minimum value for a numeric input/display gadget.

  property Max: Integer; [rw]

  

Adjust the maximum value for a numeric input/display gadget.

  property Reverse: Boolean; [rw]

  

Reverse the display of a numeric gadget.

  property RevLeftRight: Boolean; [rw]

  

Reverse the function of left/right keys.

  property RevUpDown: Boolean; [rw]

  

Reverse the function of up/down keys.

  property Value: Integer; [rw]

  

Adjust the current value for a numeric input/display gadget.

  property OnValueChange: TNotifyEvent; [rw]

  

Event when Value is changed.

end;

Inheritance

TMUINumeric

  

Numeric class is the base class for everything that deals with the input (and display) of integer numbers.

|

TMUIArea

  

Super class for every other MUI class except windows and applications

|

TMUIWithParent

  

Subclass of TNotify to introduce the Parent relation

|

TMUINotify

  

Notify class is superclass of all other MUI classes.

|

TMUIRootClass

  

Base class for all MUI Class

|

TObject

Description

Numeric class itself does not feature any GUI elements, it just offers some basic attributes and methods which are common to all types of sliders. Creating direct instances of this class usually doesn't make any sense. Instead, use one of the included subclasses like Slider, NumericButton or Knob to select the type of gadget you need.

See also

Slider

  

The slider class generates a gui element that allows a user to adjust a numeric value.

NumericButton

  

Save saving Slider

Knob

  

This is a subclass of Numeric class which offers a knob that the user may turn.


Documentation generated on: 2024-12-21