Book HomeMastering Perl/TkSearch this book

10.14. Identifying Parts of a Scale

To find out what part of the Scale a coordinate resides in, use the identify method:

$value = $scale->identify(x, y);

The identify method returns a string containing one of the following values: "slider", "trough1", "trough2", or an empty string (if the coordinates don't refer to any of these parts).



Library Navigation Links

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