ShowPointer.htm 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <html>
  2. <head>
  3. <title>Blitz3D Docs</title>
  4. <link rel=stylesheet href=../css/commands.css type=text/css>
  5. </head>
  6. <body>
  7. <h1>ShowPointer</h1>
  8. <h1>Parameters</h1>
  9. <table>
  10. <tr>
  11. <td>
  12. None.
  13. </td>
  14. </tr>
  15. </table>
  16. <h1>Description</h1>
  17. <table>
  18. <tr>
  19. <td>
  20. 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.
  21. <br>
  22. <br>
  23. See also: <a class=small href=HidePointer.htm>HidePointer</a>.
  24. </td>
  25. </tr>
  26. </table>
  27. <h1><a href=../2d_examples/ShowPointer.bb>Example</a></h1>
  28. <table>
  29. <tr>
  30. <td>
  31. ; HidePointer / ShoPointer Example <br />
  32. <br />
  33. ; draw a simple screen, cut in half by a white line <br />
  34. Graphics 800,600,0,2 <br />
  35. Color 255,255,255 <br />
  36. Line 400,0,400,600 <br />
  37. Text 200,300,"ShowPointer",True,True <br />
  38. Text 600,300,"HidePointer",True,True <br />
  39. <br />
  40. ; and a simple loop in which we hide / show the pointer dependent on <br />
  41. ; which side of the screen the mouse is on! <br />
  42. Repeat <br />
  43. If MouseX()<400 Then <br />
  44. ShowPointer <br />
  45. Else <br />
  46. HidePointer <br />
  47. End If <br />
  48. If KeyHit(1) Then Exit ; ESCAPE to exit <br />
  49. Forever <br />
  50. <br />
  51. End ; bye!
  52. </td>
  53. </tr>
  54. </table>
  55. <br>
  56. <a target=_top href=../index.htm>Index</a><br>
  57. <br>
  58. 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>
  59. </html>