BBS: Inland Empire Archive
Date: 11-23-92 (18:18)             Number: 269
From: FRED DISANO                  Refer#: NONE
  To: BRAD BARTLETT                 Recvd: NO  
Subj: MOUSE IN QB                    Conf: (2) Quik_Bas
 Ok Brad, here's a couple of mouse routines that will work
in graphic and text modes:
 rem $include:''
dim iregs as regtypex,oregs as regtype

'init mouse
interruptx &h33,iregs,oregs
'note that stat=0 means no mouse while stat=-1 means there is
'buttons of course returns the buttons

'show cursor
interruptx &h33,iregs,oregs


interruptx &h33,iregs,oregs and 7
locate 2,1:?"x";x;"y";y;"button:";butt
loop until butt=2  'press right button to end

'note: to hide the cursor simple change the &H1 in 'show cursor to &h2

 Take Care....FRed

--- Maximus 2.01wb
 * Origin: QuickShare Canada Point * Orleans, ON (613)830-2802 (1:163/518)
Outer Court
Echo Basic Postings

Books at Amazon:

Back to BASIC: The History, Corruption, and Future of the Language

Hackers: Heroes of the Computer Revolution (including Tiny BASIC)

Go to: The Story of the Math Majors, Bridge Players, Engineers, Chess Wizards, Scientists and Iconoclasts who were the Hero Programmers of the Software Revolution

The Advent of the Algorithm: The Idea that Rules the World

Moths in the Machine: The Power and Perils of Programming

Mastering Visual Basic .NET