Microsoft KB Archive/32092

Using Mouse Functions 9 and 16 with QuickBASIC Version 4.00 PSS ID Number: Q32092 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

Summary:

For mouse Functions 9 and 16, you must set up an integer array and pass the address of the array to the mouse driver.

For QuickBASIC versions prior to version 4.0, the only restriction on this array is that it must be $STATIC (the default array type). In version 4.0, the array must also be in a COMMON block if you want to make the mouse function CALL from within the QuickBASIC environment.

For more information, refer to Part 4 of the README.DOC found on the Program Disk of QuickBASIC, version 4.0.

The following is an example of an integer array:

DEFINT A-Z DECLARE SUB MOUSE (M1, M2, M3, M4) DIM Cursor(15, 1) COMMON Cursor ’ ensures array data is in DGROUP. . (set up Cursor for mouse cursor shape desired). M1 = 9:M2 = 6:M3 = 0 CALL MOUSE ( M1, M2, M3, VARPTR(Cursor(0, 0))) ’ Function 9

Additional reference words: BASIC 9.00

Copyright Microsoft Corporation 1993.