| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <html>
- <head>
- <title>Blitz3D Docs</title>
- <link rel=stylesheet href=../css/commands.css type=text/css>
- </head>
- <body>
- <h1>ShowPointer</h1>
- <h1>Parameters</h1>
- <table>
- <tr>
- <td>
- None.
- </td>
- </tr>
- </table>
- <h1>Description</h1>
- <table>
- <tr>
- <td>
- ShowPointer is for use in windowed display modes, and simply shows the Windows pointer after it's been hidden (via HidePointer). It has no effect in full-screen modes.
- <br>
- <br>
- See also: <a class=small href=HidePointer.htm>HidePointer</a>.
- </td>
- </tr>
- </table>
- <h1><a href=../2d_examples/ShowPointer.bb>Example</a></h1>
- <table>
- <tr>
- <td>
- ; HidePointer / ShoPointer Example
<br />
-
<br />
- ; draw a simple screen, cut in half by a white line
<br />
- Graphics 800,600,0,2
<br />
- Color 255,255,255
<br />
- Line 400,0,400,600
<br />
- Text 200,300,"ShowPointer",True,True
<br />
- Text 600,300,"HidePointer",True,True
<br />
-
<br />
- ; and a simple loop in which we hide / show the pointer dependent on
<br />
- ; which side of the screen the mouse is on!
<br />
- Repeat
<br />
- If MouseX()<400 Then
<br />
- ShowPointer
<br />
- Else
<br />
- HidePointer
<br />
- End If
<br />
- If KeyHit(1) Then Exit ; ESCAPE to exit
<br />
- Forever
<br />
-
<br />
- End ; bye!
- </td>
- </tr>
- </table>
- <br>
- <a target=_top href=../index.htm>Index</a><br>
- <br>
- Click <a href=http://www.blitzbasic.co.nz/b3ddocs/command.php?name=ShowPointer&ref=comments target=_blank>here</a> to view the latest version of this page online</body>
- </html>
|