On Thursday 04 August 2005 19:01, Sergey Plis wrote:
> Thank you!
>
> Here is the problem I have. My code
> \ here I have x y mouse positions which I got with the CODE: field of
> glcanvas in theseus
>       DOPRESS
>       \ some variables initialization
>       0 framew ! 0 frameh !
>       \ record new mouse position since I use it to paint
>       2dup
>       yclicked ! xclicked !
>       \ throw away everything except the last  x y coordinates
>       2swap 2drop 2swap 2drop
>       \ repaint glcanvas
>       gear-task @ IF make-gear-task THEN
>
> When I click on the glcanvas the procedure starts (I look what's on
> the stack before DOPRESS gets called) and does nothing. Even my mouse
> is up already when I move it away from glcanvas to a button DOPRESS
> starts working (again I see what's on the stack). Except the latest x
> y coordinates are on the button, not where I raised the mouse on the
> stack.
>
> What I do wrong?

Nothing. I tried a simplified example, and the OpenGL window "eats" the 
events (i.e. it passes the clicks to the outer window, but doesn't pass 
the mouse movements). I'll try to find a way around that.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://www.jwdt.com/~paysan/

Attachment: pgpO6j5NsYr2L.pgp
Description: PGP signature

Reply via email to