home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  

Book HomeMastering Perl/TkSearch this book

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

Library Navigation Links

Copyright © 2002 O'Reilly & Associates. All rights reserved.