| View previous topic :: View next topic |
| Author |
Message |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Nov 18, 2003 5:31 pm Post subject: Dialog above/ontop of cursor |
|
|
Is there an API that will set a VDS dialog to be ontop of a cursor? I want to attempt to make a cursor replacement program and need to be able to set a dialog ontop of the cursor to cover it.
Thanks _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Tue Nov 18, 2003 6:22 pm Post subject: |
|
|
| You could set a global cursor and make it an animation with no visible image, then have your dialog move/follow around the position of the cursor. |
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Nov 18, 2003 6:43 pm Post subject: |
|
|
I thought of that, but when you click the cursor (even invisible) it would click on my dialog and not on anything else. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
Skit3000 Admin Team

Joined: 11 May 2002 Posts: 2166 Location: The Netherlands
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Tue Nov 18, 2003 8:03 pm Post subject: |
|
|
Nope, that doesn't work right ither. _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Nov 19, 2003 2:54 am Post subject: |
|
|
Chris,
Are you talking about the mouse cursor or the Edit caret? If it is the caret you are talking about Gadget already has commands to do this. If you are talking about the mouse cursor then I think Tommy has a DLL for this? Not sure  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Wed Nov 19, 2003 3:24 am Post subject: |
|
|
Chris,
If you want to completely get lock the mouse cursor from the user you can use the code below.
| Code: | LoadLib user32.dll
%R = @binary(DWORD,0)@binary(DWORD,0)@binary(DWORD,1)@binary(DWORD,1)
%A = @Lib(user32,ClipCursor,BOOL:,@Addr("%R"))
%A = @Lib(user32,ShowCursor,INT:,0)
wait 25
%A = @Lib(user32,ClipCursor,BOOL:,NIL:)
%A = @Lib(user32,ShowCursor,INT:,1)
FreeLib user32
|
Just know that if something goes wrong with the code above the user can close your program with ALT+F4 and then hit CTRL+ALT+DEL to bring up the Tasklist then close the task list to release the mouse cursor... There is other ways to stop the use of the mouse cursor as well but I am not sure what effect you are trying to achieve  _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Wed Nov 19, 2003 3:32 am Post subject: |
|
|
| LiquidCode wrote: | | I want to attempt to make a cursor replacement program and need to be able to set a dialog ontop of the cursor to cover it. |
I don't understand what U R trying to achieve.
Was about to about post clip cursor - But I just saw mindpower posted that.
If U changing the mouse cursor then I don't think there is a need to hide it. Just change global cursor. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
|
| Back to top |
|
 |
LiquidCode Moderator Team
Joined: 05 Dec 2000 Posts: 1753 Location: Space and Time
|
Posted: Wed Nov 19, 2003 1:40 pm Post subject: |
|
|
Yes, Like Cursor XP. But not as advanced.  _________________ Chris
Http://theblindhouse.com |
|
| Back to top |
|
 |
|