The scale widget may be used to obtain numerical input from the user.
interface scale : widget { <widgets/scale.h>
sources/java/hush.dv.widgets.scale
scale();
scale(char* p, char* options = "");
scale(widget* w, char* p, char* options = "");
void text(char* s);
void from(int n);
void to(int n);
int get();
void set(int v);
};
-command <tcl-command> -from <number> -label <string> -length <coord> ?? -showvalue <true|false> -sliderforeground <color> -sliderlength <coord> -state <normal|active|disabled> -tickinterval <number> -to <number> -width <number>
activeforeground, background, borderwidth, cursor, disabledforeground, font, foreground, orient, relief,
When a handler is attached to a scale it is called when the user releases the slider. The value of the scale is passed as an additional parameter when invoking the handler. The default binding for the scale is the ButtonRelease event.
widget -- file <widgets/scale.h>
|
Hush Online Technology
hush@cs.vu.nl
09/24/99 |
|
|