How to move
the cursor only in the x-axis?
2001-04-27
19:05:08 Gustav Evertsson Ratings: 0, Votes: 0
"lockY"
is a variable you declare and set true when you want to do this type of
control.
Substitute
the real functions that get and set the mouse co-ordinates in the relevant
spots.
In your
OnMouseMove, go something like:
if
(y<>0) and (lockY) then begin
GetMouseCoords(NewX,NewY);
NewY :=
NewY + y; {or should that be minus?}
SetMouseCoords(NewX,NewY);
end;