Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unselect canvas

Status
Not open for further replies.

vquick

IS-IT--Management
Jul 13, 2008
14
US
When a canvas is selected i change the hightlight color to red. When another canvas is selected i want to unselect the previous canvas. ive tried:
$canvas->selectClear;
and this did not work. Anyone have any ideas?
 
How are you "selecting" the canvas to begin with? Do you just have a <Button> binding that configures the canvas to be red? If so, have it also set which canvas is selected into a global variable, and on those <Button> events check if this variable has already been set because of another canvas, and use it to reconfigure the old canvas to stop being red.

Cuvou.com | My personal homepage
Code:
perl -e '$|=$i=1;print" oo\n<|>\n_|_";x:sleep$|;print"\b",$i++%2?"/":"_";goto x;'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top