Q68589: How to Display Mouse Pointer on Multiple Pages, in UI Toolbox
Article: Q68589
Product(s): See article
Version(s): 7.00 7.10
Operating System(s): MS-DOS
Keyword(s): ENDUSER | SR# S910111-277 B_QuickBas H_Mouse | mspl13_basic
Last Modified: 29-JAN-1991
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.
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
MouseShow
SelectPage(9,0,0)
SLEEP
SelectPage(9,1,0)
END
SUB SelectPage(Mode%, Page%, Visible%)
Regs.AX = &H1D
Regs.BX = 0
Interrupt &H33, Regs, Regs
END SUB
THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.
Copyright Microsoft Corporation 1986-2002.