Index Parent

Slider class


 

The Slider class is used to create sliders.

 

ATTRIBUTES
Name Type Class Note
CheckAllSize B ISGN  
Default N ISGN  
Format S ISG  
Max N ISGN  
Min N ISGN  
Reverse B ISGN  
RevLeftRight B ISGN  
RevUpDown B ISGN  
Stringify S I  
Value N ISGN  

 

Stringify:
At Init time you can define a stringify-macro in this attribute: anytime the Slider feels it should draw itself, that macro is called with one argument: the current Value of the Slider. The result of the macro is used as label for the object. If the macro fails or it returns an empty string or it returns nothing at all, the Value itself is used.
The macro must be an ARexx in-line-string-macro designed to be very fast.
A simple example is

nb.Stringify = "parse arg val;return 'Value is:' val"

Format:
This is a string that defines the format of the slider label.
Rules:

  1. The size of the string may be max 31 chars long
  2. The string may contain just one %ld (%lx)
  3. The string may contain any number of %%
  4. The string can't contain any %s
  5. If Stringify is present, it is used
  6. If Format is present, it is used
  7. If neither Stringify and Format are present, %ld is used

 

METHODS
Name Parameters Note
Decrease <delta/>  
Increase <delta/N>  
SetDefault <value/N>