Re: Opposite of Tk::Canvas::canvasx()?

Ala Qumsieh <[email protected]> Tue, 18 Apr 2006 16:36:57 -0700 (PDT)
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>

--- Slaven Rezic <[email protected]> wrote:

> Ala Qumsieh <[email protected]> writes:
> 
> > --- [email protected] wrote:
> > > It's probably defined in the C core of Tk.
> > 
> > I grepped for canvasx in the whole source tree,
> but
> > couldn't find it. Weird.
> 
> It's in Tk-804.027/pTk/mTk/generic/tkCanvas.c, lines
> 571 and 847.

Doh. I grepped for canvasx, not CANVASX :)
Thanks.

> > 
> > > In my personal toolbox I have these methods:
> > > 
> > > =item widgetx, widgety
> > > 
> > > Opposite of canvasx and canvasy.
> > 
> > Thanks. I had tried something of this sort, but it
> > doesn't seem to take into account any scaling in
> the
> > canvas. I haven't had time to investigate, but I'm
> > sure it's a small fix from here to get what I
> want.
> > 
> 
> Scaling? I don't think there's real scaling in
> Tk::Canvas.

True. I was simulating it by modifying the
scrollregion on the fly. That is what's throwing me a
bit off. I still didn't look into it, but it shouldn't
be a big thing to take that into account.

Thanks again,
--Ala


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the
message body of "unsubscribe ptk" to [email protected]