Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Sunshow Pro V3.0 - <b>showmouse()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ShowMouse()

Display the mouse cursor in graphic mode


Syntax

ShowMouse()


Returns

0
Success.

-99
Parameter is invalid.


Remarks

ShowMouse() displays the graphic mouse cursor to the screen and saves the 
image data beneath. It must be used in conjunction with HideMouse() when 
drawing to the screen, to prevent the mouse cursor from being overwritten 
by the drawing function being called. It is a good policy to hide the mouse 
with HideMouse() whenever writing to the screen, remembering to restore it 
with ShowMouse() upon conclusion of whatever draw function used. If the 
above procedure is not followed, unwanted graphic garbage may be 
accidently left on the screen underneath the mouse cursor.


Example

nStatus = FindVideoMode(640, 480, 16)
nStatus = OpenLiveMouse(0,0)
nStatus = Sleep(7)
nStatus = HideMouse()
nStatus = SunSay(0,0,8,15,1,"","Sample text string")
nStatus = ShowMouse()
nStatus = Sleep(7)
nStatus = CloseLiveMouse()
nStatus = TextMode()

For other examples of how to use the mouse support functions, see 
SUNMOUSE.PRG, an example program distributed with Sunshow Pro.



See Also: CheckMouse() CloseLiveMouse() GetMousePosition() HideMouse() LimitMouse() OpenLiveMouse() PositionMouse() SetMouseCursor()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson