Dear GRX
I am reassured to hear that others have found difficulties with GrMouseWarp.
I find that (under Win32) with the Gr_default_graphics, I can get GrMouseWarp to position itself correctly by adding 50 pixels to each of the x & y coordinates. However, I am sure that a new universal constant of nature has not been discovered. Something is not right...
Also, I still can not get the mouse cursor to disappear.
Peter Williams
Peter Williams a écrit:
Also, I still can not get the mouse cursor to disappear.
Trick: set the cursor size to 1.
Written in Pascal:
var pCursor:GrCursorPtr;
pCursor:=GrMouseGetCursor; with pCursor^ do begin XSize:=1; YSize:=1; end; GrMouseSetCursor(pCursor);
Maurice
Dear Peter Williams,
you wrote:
I find that (under Win32) with the Gr_default_graphics, I can get GrMouseWarp to position itself correctly by adding 50 pixels to each of the x & y coordinates. However, I am sure that a new universal constant of nature has not been discovered. Something is not right...
IMO that "constant" is the upper left corner of the GRX window on the desktop.
See my previous email to this list for my idea how to fix this bug.
Hope this helps,
Peter
Peter Gerwinski escribió:
Dear Peter Williams,
you wrote:
I find that (under Win32) with the Gr_default_graphics, I can get GrMouseWarp to position itself correctly by adding 50 pixels to each of the x & y coordinates. However, I am sure that a new universal constant of nature has not been discovered. Something is not right...
IMO that "constant" is the upper left corner of the GRX window on the desktop.
See my previous email to this list for my idea how to fix this bug.
Hope this helps,
Peter
Please, note that mouse cursor position is always refered to the screen context, not the current context. It is simple to understand why, the current context can be a memory context by example.