forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Dialog above/ontop of cursor

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Nov 18, 2003 5:31 pm    Post subject: Dialog above/ontop of cursor Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Tue Nov 18, 2003 6:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Nov 18, 2003 6:43 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Skit3000
Admin Team


Joined: 11 May 2002
Posts: 2166
Location: The Netherlands

PostPosted: Tue Nov 18, 2003 7:48 pm    Post subject: Reply with quote

You could specify the CLICK style in your dialog, and when the click event is, you can move your dialog a little bit, and use the "window click" command to send the real mouseclick... Smile
_________________
[ Add autocomplete functionality to your VDS IDE windows! ]
Voor Nederlandse beginners met VDS: bekijk ook eens deze tutorial!
Back to top
View user's profile Send private message
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Nov 18, 2003 7:53 pm    Post subject: Reply with quote

Humm, I'll try that. Smile
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Tue Nov 18, 2003 8:03 pm    Post subject: Reply with quote

Nope, that doesn't work right ither.
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Nov 19, 2003 2:54 am    Post subject: Reply with quote

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 Question

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Wed Nov 19, 2003 3:24 am    Post subject: Reply with quote

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 Question

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
CodeScript
Moderator Team


Joined: 08 Jun 2003
Posts: 1060
Location: India

PostPosted: Wed Nov 19, 2003 3:32 am    Post subject: Reply with quote

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
Arrow Give your application a professional look with the VDSGUI Extension
Back to top
View user's profile Send private message Visit poster's website
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Wed Nov 19, 2003 3:48 am    Post subject: Reply with quote

I believe he means like CursorXP: http://www.stardock.com/products/cursorxp/
_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
LiquidCode
Moderator Team


Joined: 05 Dec 2000
Posts: 1753
Location: Space and Time

PostPosted: Wed Nov 19, 2003 1:40 pm    Post subject: Reply with quote

Yes, Like Cursor XP. But not as advanced. Smile
_________________
Chris
Http://theblindhouse.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group