So all mouse clicks a widget recieves are in coordinates relative to
the window? Am I correct?

Thanks
--
Sergey

On Tue, Aug 30, 2005 at 03:15:40PM -0600, Sergey Plis wrote:
> current mouse position in glcanvas? Since my starting point is in
> glcanvas I thought the new point is also there. I mean in the
> coordinate system of glcanvas. Is it that the ending point (when I
> unpress mouse button) is outputted in global coordinates?
> 
> Thank you!
> 
> --
> Sergey
> 
> On Tue, Aug 30, 2005 at 11:08:57PM +0200, Bernd Paysan wrote:
> > On Tuesday 30 August 2005 22:31, Sergey Plis wrote:
> > > Thank you! But, unfortunately, it is not enough :):)
> > >
> > > Look at my example and see that Y value now is relative to the main
> > > window not to the glcanvas I click in, as expected. :)))
> > 
> > No, that's supposed to be like this. You have two points in the dopress 
> > routine: One that's just passed around (here: the starting point), and 
> > one that's the current mouse position.
> > 
> > -- 
> > Bernd Paysan
> > "If you want it done right, you have to do it yourself"
> > http://www.jwdt.com/~paysan/
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to