On Wednesday 03 August 2005 23:20, Sergey Plis wrote: > Hello, > > I'm trying to follow mouse coordinates while it is pressed inside > GLcanvas. Thus far I know how to detect mouse press and mouse release > event. How to know mouse coordinates while it is pressed?
Look at the DOPRESS iterator (WIDGET VIEW DOPRESS in MINOS vocabulary). This will call the remainder of the word with a new x y mouse coordinate whenever the mouse moves (as long as the button is pressed). The DOPRESS iterator also passes two arbitrary parameters it got to the remainder of the word (underneath the current x and y), usually the start X and Y of the mouse (e.g. for selection rectangle). -- Bernd Paysan "If you want it done right, you have to do it yourself" http://www.jwdt.com/~paysan/
pgpmLTQqq5KCm.pgp
Description: PGP signature
