JavaScript EditorFree JavaScript Editor     Perl Manuals 

Main Page

10.8. Changing the Size of the Scale

You can use the -length and -width options to change the size of the Scale. You can also change the size of the button displayed in the slider widget; to do so, use the -sliderlength option. It takes a value specified in screen units and will change the length of the slider button.

$mw->Scale(-sliderlength => 100); # make the button 100 pixels.

Figure 10-5 illustrates this.

Figure 10-5

Figure 10-5. Different -sliderlength values

JavaScript EditorJavaScript Formatter     Perl Manuals