Function 07 - Set Horizontal Limits
PSS ID Number: Q19848
Article last modified on 05-14-1993
PSS database name: H_Mouse

1.x 2.x 3.x 4.x 5.x 6.x 7.x 8.x 9.00

MS-DOS


-------------------------------------------------------------------
The information in this article applies to:

 - Microsoft Mouse Driver for MS-DOS, versions 1.x, 2.x, 3.x, 4.x,
   5.x, 6.x, 7.x, 8.x, and 9.0
------------------------------------------------------------------- 

Summary:

The following mouse driver function can be used to horizontally
restrict the mouse cursor motion: 

FUNCTION 07: - SET MINIMUM AND MAXIMUM HORIZONTAL POSITION
   Inputs:
      AX = 7
      CX = Minimum horizontal position
      DX = Maximum horizontal position
   Outputs: None

If the cursor is outside the horizontal bounds specified by this
function, it is moved to just inside the area. Subsequent cursor
motion is restricted to the horizontal limits imposed by the CX and DX
parameters. If CX is greater than DX (minimum greater than maximum),
the values are swapped before the limits are imposed. Minimum and
maximum may be equal, but this would restrict horizontal freedom,
which can be useful for restricting the cursor motion within a
vertical list of selection items. 

Additional reference words: 7.00 7.04 7.05 8.00 8.10 8.20 9.00

Copyright Microsoft Corporation 1993.