GPRealSlider
Unit : GPSliderUnit
Association : GPRealSliderAsn
Inherits from : GPSlider
Description
- Displays a numeric value with upper and lower bounds and allows the
user to change that value interactively using a slider mechanism similar to
that of a scroll bar. This slider is used for real values. To use, you should
make a subclass and redefine the RealValue method.
Public Interface
-
CONSTRUCTOR Init (containerLink: GPManagerAsn);
Initializes a GPRealSlider.
DESTRUCTOR Destroy; VIRTUAL;
Destroys a GPRealSlider.
PROCEDURE ValueChanged; VIRTUAL;
Defines behavior to occur when value in slider is changed. In this class, a
RealValue message will be sent. This method should not be redefined.
PROCEDURE SetMaximum (max: real);
Modifies the upper bound.
PROCEDURE SetMinimum (min: real);
Modifies the lower bound.
PROCEDURE SetInterval (num: real);
Sets the distance to move the slider when the user moves it by a multiple
increment (clicking on the scroll bar in between the arrows and the
thumb).
PROCEDURE SetValue (num: real);
Sets the current value of the slider.
FUNCTION GetValue: real;
Returns the value of the slider.
PROCEDURE RealValue (value: real); VIRTUAL;
Defines behavior to occur when value in slider is changed. The parameter
value is the value defined by the position of the scroll bar. For example, if
the thumb is halfway between the two ends, and the minimum and maximum are respectively set to 0.0 and 100.0, value will receive 50.0. This
method should be redefined. It will be called whenever the slider is
moved.
Subclasses
- None
Please report any problems with GP or the documentation to
GP Support
.
Loring Holden