Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
mouse commands
#1
I'm just wondering, I know about Lilio's getmouse command, but afaik, there are no commands to turn off the mouse. There are also no commands to change the mouse position. I'm pretty sure it can be done with user32 or something like that, but... Well, I'm just not sure. Too much playing, not enough programmin. :lol:

Anyways, if someone can explain to me how to do this stuff, it'd be greatly appreciated.
Jumping Jahoolipers!
Reply
#2
SETMOUSE function, new in 0.12.
From gfxlib.txt (0.12 version):
Code:
+----------+------------------------------------------------------------------
| SETMOUSE |
+----------+

Statement to position and show/hide the system mouse cursor.


Syntax:
    SETMOUSE [x][,[y][,cursor]]


Argument:    Description:

x,y        Screen coordinates of the new mouse cursor position.

cursor        Pass 0 to hide the cursor, or 1 to show it.


Insights:

This statement is useful to set the current system mouse cursor position, and
to hide or show it. The cursor is shown by default when you call SCREEN.


Example:

none


Differences from QB:

Function new in FB.


See also:

GETMOUSE.
Exactly what you need Wink
Pay attention, the OS cursor is now not hidden by default when in fullscreen mode, like it was in 0.11; by default now it's shown in any mode when SCREEN is first called, and you have to explicitely turn it off via SETMOUSE. Be warned!
ngelo Mottola - EC++
Reply
#3
ah.... No wonder i couldn't find any such function, I was looking through an old gfxlib doc. :lol: Thanks lillio!
Jumping Jahoolipers!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)