[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
Confine_Mouse_Vert KeyTTT
Purpose To restrict the screen position of the mouse cursor
vertically.
Declaration Confine_Mouse_Vert(Top,Bot: integer);
Top is the upper most Y coord (1..25)
Bot is the lower most Y coord (1..25)
Uses CRT, DOS, KeyTTT;
Remarks If the mouse is outside the confined coords, then as soon as
any mouse activity occurs (or a mouse function is called)
the mouse is repositioned inside the nearest boundary.
Example
USES CRT, DOS, KEYTTT;
BEGIN
HIDE_MOUSE_CURSOR;
CONFINE_MOUSE_HORIZ(20,60);
CONFINE_MOUSE_VERT(5,15);
SHOW_MOUSE_CURSOR;
END.
The mouse is resticted to movement between columns 20 to 60, and
between rows 5 to 15.
See Also:
Confine_Mouse_Horiz
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson