10.14. Identifying Parts of a Scale
You can find out what part of the scale a coordinate resides in by using the identifymethod:
$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).
Get Learning Perl/Tk now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.