[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
Confine_Mouse_Horiz                                             KeyTTT



Purpose   To restrict the screen position of the mouse cursor
          horizontally.

Declaration    Confine_Mouse_Horiz(Left,Right: integer);

           Left is the left most X coord (1..80)
           Right is the right most X coord (1..80)

Uses CRT, DOS, KeyTTT.

Remarks   If the mouse is outside the confined coords when the
          restrictions are made, the mouse is repositioned inside the
          nearest boundary, as soon as any mouse activity occurs .



Example


               USES CRT, DOS, KEYTTT;
               BEGIN
                 HIDE_MOUSE_CURSOR;
                 CONFINE_MOUSE_HORIZ(20,60);
                 SHOW_MOUSE_CURSOR;
               END.


The mouse is resticted to movement between columns 20 and 60.

See Also: Confine_Mouse_Vert
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson