dos_compilers/Microsoft QuickBASIC v3/manual/ng23ef7.html
2024-07-01 13:00:14 -07:00

50 lines
2.0 KiB
HTML

<HTML>
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
<BODY>
<A HREF="ng23cd7.html">[&lt;&lt;Previous Entry]</A>
<A HREF="ng320.html">[^^Up^^]</A>
<A HREF="ng2434c.html">[Next Entry&gt;&gt;]</A>
<A HREF="menu.html" >[Menu]</A>
<A HREF="info.html">[About The Guide]</A>
<HR>
<PRE>
<B>PEN Light Pen Status Function</B>
<U>y</U> = <B>PEN</B>(<U>n</U>)
Returns information about the status of the light pen. For the PEN
function to be available, a PEN ON statement must first be executed.
<U>n</U> A numeric expression in the range 0 to 9; specifies the
kind of information to be returned. Options are as
follows:
0 Returns -1 if light pen has been down since last PEN
function; otherwise returns 0.
1 Returns x coordinate of location where pen was most
recently activated.
2 Returns y coordinate of location where pen was most
recently activated.
3 Returns -1 if pen switch is currently down; otherwise
returns 0.
4 Returns x coordinate of last known valid pen location.
5 Returns y coordinate of last known valid pen location.
6 Returns row position of location where pen was most
recently activated.
7 Returns column position of location where pen was most
recently activated.
8 Returns row position of last known valid pen location.
9 Returns column position of last known valid pen
location.
</PRE>
<HR>
<B>See Also:</B>
<A HREF="ng2434c.html">PEN (statement)</A>
<HR>
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by <A HREF="http://www.acemake.com/hagbard">Dave Pearson</A>
<HR>
</BODY>
</HTML>