Function 08 - Set Vertical Limits
PSS ID Number: Q19849
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 vertically restrict
the mouse cursor motion: 

FUNCTION 08: - SET MINIMUM AND MAXIMUM VERTICAL POSITION
   Inputs:
      AX = 8
      CX = Minimum vertical position
      DX = Maximum vertical position
   Outputs: None

If the cursor is outside the vertical bounds specified by this
function, it is moved to just inside the area. Subsequent cursor
motion is restricted to the vertical 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 vertical freedom, which
can be useful for restricting the cursor motion to a horizontal row of
selection items. 

Additional reference words: 7.00 7.04 7.05 8.00 8.10 8.20 9.00

Copyright Microsoft Corporation 1993.