BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mouse routines.

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
Matthew
Guest





PostPosted: Sun May 06, 2007 8:10 am    Post subject: Mouse routines. Reply with quote



Greets all:

TMouse seems to only with within the scope of a Form. I know
this must be wrong... I think. I need a way to set the position
of the mouse (X/Y) as well as read (get) it... Can someone
please tell me what to take a look at.

Thanks all - Esp Teamb.

Laterz.
Back to top
Thomas Maeder [TeamB]
Guest





PostPosted: Sun May 06, 2007 8:10 am    Post subject: Re: Mouse routines. Reply with quote



This newsgroup is about the C++ programming language, while your
question looks like it is about using a VCL component.

Please direct your browser at http://info.borland.com/newsgroups/ and
read the newsgroup descriptions and guidelines. This will help you
find the appropriate newsgroup for your question.
Back to top
Bruce Larrabee
Guest





PostPosted: Sun May 06, 2007 5:25 pm    Post subject: Re: Mouse routines. Reply with quote



Hi Matthew,

Look up the function 'SetCapture()'.

HTH,

Bruce
Back to top
Matthew
Guest





PostPosted: Mon May 07, 2007 12:21 am    Post subject: Re: Mouse routines - not VCL Reply with quote

Bruce said:

Quote:
Look up the function 'SetCapture()'.

At first I thought TMouse was something it isn't -
I need to be able to acquire the XY of the mouse cursor (as
well as set it) for any application. And from what I can
tell TMouse only works with the current form. Perhaps I'm
wrong, but I think what I'm looking for are WIN API
functions - you wouldn't happen to have an API example that
deals with the mouse XY would you?

Thanks.

Matthew.
Back to top
Bob Gonder
Guest





PostPosted: Mon May 07, 2007 7:25 am    Post subject: Re: Mouse routines - not VCL Reply with quote

Matthew wrote:

Quote:
I'm looking for are WIN API
functions - you wouldn't happen to have an API example that
deals with the mouse XY would you?

Use SetWindowsHookEx()

Google the .nativeapi group for example code
Back to top
Matthew
Guest





PostPosted: Mon May 07, 2007 8:04 am    Post subject: Re: Mouse routines - not VCL Reply with quote

Bob Gonder wrote:

Quote:
Use SetWindowsHookEx()

Google the .nativeapi group for example code

Thank you very much Bob. I will take a look.

Matthew.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) 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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.