Article ID: 68589
Article Last Modified on 11/21/2006
This article was previously published under Q68589
SUMMARY
The User Interface (UI) Toolbox demonstration programs supplied with Microsoft Basic Professional Development System (PDS) versions 7.00 and 7.10 are not written to accomodate mouse support on video pages other than page 0 (zero). If you change the SCREEN statement to use any video page other than page 0, the mouse cursor (pointer) will not be visible. To make the mouse cursor visible, you must call DOS interrupt 33 hex.
Note that you may also use interrupt 33 hex with QuickBasic version 4.00, 4.00b, and 4.50 to show the mouse cursor on desired video pages.
MORE INFORMATION
DOS function 33 hex, with function 1D hex, selects the display page for the mouse pointer. Before calling this DOS service, you must load the AX register with 1D hexadecimal, and the BX register with the desired page number. This page number coincides with the second argument to Basic's SCREEN statement.
Code Example
Combine (load into QBX.EXE) the following main-module code and subprogram along with the MOUSE.BAS source file provided with Basic PDS 7.00 and 7.10.
'$INCLUDE: 'qbx.bi' DIM SHARED Regs as Regtype SCREEN 12,,1 SelectPage (1) SLEEP SUB SelectPage(Page%) Regs.AX = &H1D Regs.BX = Page% Interrupt &H33, Regs, Regs END SUB
Additional query words: QuickBas BasicCom
Keywords: KB68589