January 1999
Beginner
373 pages
9h 43m
English
Use the -from and -to options to change the possible range of values for the scale. Usually the value associated with -from is smaller than the value associated with -to. If you happen to switch them, the scale will still display with the higher value on the right and the lower value on the left. Either or both values can be negative. Here are some examples:
$mw->Scale(-from => -10, -to => 10)->pack; $mw->Scale(-from => 10, -to => -100)->pack; $mw->Scale(-from => -100, -to => -50)->pack; $mw->Scale(-from => -0.5, -to => 0.5, -resolution => 0.1)->pack;
As you can see, the values assigned to -from and -to also don't need to be whole integers.