GPIntSlider
Unit : GPSliderUnit
Association : GPIntSliderAsn
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 integer values. To use, you
should make a subclass and redefine the IntValue method.
Public Interface
-
CONSTRUCTOR Init (containerLink: GPManagerAsn);
Initializes a GPIntSlider.
DESTRUCTOR Destroy; VIRTUAL;
Destroys a GPIntSlider.
PROCEDURE ValueChanged; VIRTUAL;
Defines behavior to occur when value in slider is changed. In this class, an
IntValue message will be sent.
PROCEDURE SetMaximum (max: integer);
Modifies the upper bound.
PROCEDURE SetMinimum (min: integer);
Modifies the lower bound.
PROCEDURE SetInterval (num: integer);
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: integer);
Sets the current value of the slider.
FUNCTION GetValue: integer;
Returns the value of the slider.
PROCEDURE IntValue (value: integer); VIRTUAL;
Defines behavior to occur when value in slider is changed. The parameter
value is the value defined by the position on the scroll bar. For example, if
the thumb is halfway between the two ends, and the minimum and maximum are set to 0 and 100, value will receive 50. This method will be
executed whenever the slider is moved.
Subclasses
- None
Please report any problems with GP or the documentation to
GP Support
.
Loring Holden