in reply to Perl/Tk and Transparent Canvases
You might need to use the "place" geometry manager (perldoc Tk::place), in order to get your canvas to sit on top of other widgets, or maybe the "tile" arrangement shown in the widget demo will suffice.
Binding the mapping/unmapping of the overlay canvas (or tile) to mouse button events should be doable (Tk::bind, Tk::events), but maybe you want to think a little more about how the user is going to control things and make selections from the popup menu. (Will you need to hold the mouse button down while moving it to the object to be selected then release to select, or will consecutive clicks toggle the presence of the overlay canvas and make the selection?)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl/Tk and Transparent Canvases
by Mikster (Acolyte) on Aug 02, 2005 at 20:36 UTC | |
by graff (Chancellor) on Aug 02, 2005 at 21:20 UTC | |
by Mikster (Acolyte) on Aug 03, 2005 at 06:06 UTC |