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

Slaven Rezic <[email protected]> 19 Apr 2006 00:58:11 +0200
Newsgroups gmane.comp.lang.perl.tk
Message-ID <[email protected]>
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.

> 
> > 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.

Regards,
        Slaven

-- 
Slaven Rezic - slaven <at> rezic <dot> de

    tksm - Perl/Tk program for searching and replacing in multiple files
    http://ptktools.sourceforge.net/#tksm
-++**==--++**==--++**==--++**==--++**==--++**==--++**==
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]