Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: How to control a Tk::AbstractCanvas with a second one

by Anonymous Monk
on Nov 29, 2012 at 15:01 UTC ( #1006266=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to control a Tk::AbstractCanvas with a second one
in thread How to control a Tk::AbstractCanvas with a second one

Same difference -- you have to write some code -- what does Re^2: How to control a Tk::AbstractCanvas with a second one look like to you?

  • Comment on Re^3: How to control a Tk::AbstractCanvas with a second one

Replies are listed 'Best First'.
Re^4: How to control a Tk::AbstractCanvas with a second one
by KuntalBhusan (Acolyte) on Nov 30, 2012 at 05:05 UTC
    Ya...my concern was in moving the rectangle (rather dragging it to pan the main canvas view). I am now able to do it almost the way I wanted but in a different way...using the rubber band zoom function the Canvas2 and applying the effect in Canvas1...works like a charm :)
    ## $can is the canvas displaying the main graph and $can_1 is the cont +roller canvas... $can_1->configure(-bandColor => 'orange'); $can_1->CanvasBind('<Button-1>' => sub {$can_1->Canvas +Focus; $can_1->rubberBand(0)}); $can_1->CanvasBind('<B1-Motion>' => sub {$can_1->rubberBand(1) +}); $can_1->CanvasBind('<ButtonRelease-1>' => sub { my @box = $can_1->rubberBand(2); $can->viewArea(@box) });
    Thanks for all the help I got....Happy coding

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1006266]
help
Chatterbox?
[james28909]: im not quite how to explain it any better nick. you evolved from ignorance to intelligence. not the other way. the universe evolves from gas coulds and debris into planets stars and galaxies ect. it doesnt happen any other way. hence it has ....
[james28909]: some kind of logic behind it
[james28909]: and that is also anothe rpoint i made, i think it has to do with perception of the world around you. most people think of evolution on a human scale. why could life evolve on this planet? because this planet evolved in this solar system. and so on.
[holli]: here's something for you to watch, James. I think you will like it
[erix]: for the record: I have not downvoted anyone on that subthread that was my fault
[james28909]: there are all kinds of things that had to happen to let life come to be. but at the same time, life may not be the end goal IF there is any kind of end goal lol
[james28909]: well who is the person who gets to decide which behaviour is worthy of a downvote? a person with their own beliefs? xD
[erix]: teleology -- I've never understood why that was thunk up
[erix]: ( and when teleology was brought up, during my biology-study., I couldn't get an answer either )
[1nickt]: FTR I agree with you about "design." Just not sure about the trajectory of evolution. THere are a lot of dead-ends in the evolutionary paths. I suspect homo sapiens is just one of them.

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (15)
As of 2017-12-15 14:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (433 votes). Check out past polls.

    Notices?