Index | Parent | Slider class |
The Slider class is used to create sliders.
See MakeObj()
ATTRIBUTES | |||
---|---|---|---|
Name | Type | Class | Note |
CheckAllSize | B | ISGN | |
Default | N | ISGN | |
Format | S | ISG | Note |
Max | N | ISGN | |
Min | N | ISGN | |
Reverse | B | ISGN | |
RevLeftRight | B | ISGN | |
RevUpDown | B | ISGN | |
Stringify | S | I | Note |
Value | N | ISGN |
Stringify
At Init time you can define a stringify-macro in this
attribute: anytime the object feels it should draw itself, that
macro is executed with one argument: the current Value. The
result of the macro is used as label for the object. If the macro
fails or it returns an empty string or it doesn't return anithing,
Value itself is used.
The macro must be an ARexx-in-line-string-macro designed
to be fast. A simple example is:
nb.Stringify = "parse arg val;return 'Value is:" val"
WARNING: YOU CAN'T USE ANY FUNCTION OR SET ANY ATTRIBUTE OR DO ANYTHING THAT MIGHT LOCK THE LAYERS INSIDE STRINGIFY (E.G. YOU CANNOT OPEN WINDOWS, OPEN REQUESTERS OR EVEN SAY THERE!
Format
This is a string that defines the format of the button label.
Rules:
WARNING: If Max-Min is -1, both at init time or after a set, the class will refuse to accept it.
METHODS | ||
---|---|---|
Name | Parameters | Note |
Decrease | <delta/> | |
Increase | <delta/N> | |
SetDefault | <value/N> | |
StringToValue | <scalemin/N>,<scalemax/N>,<scale/N> | |
ValueToString | <min/N>,<max/N> |