| View previous topic :: View next topic |
| Author |
Message |
Matthew Guest
|
Posted: Sun May 06, 2007 8:10 am Post subject: Mouse routines. |
|
|
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
|
Posted: Sun May 06, 2007 8:10 am Post subject: Re: Mouse routines. |
|
|
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
|
Posted: Sun May 06, 2007 5:25 pm Post subject: Re: Mouse routines. |
|
|
Hi Matthew,
Look up the function 'SetCapture()'.
HTH,
Bruce |
|
| Back to top |
|
 |
Matthew Guest
|
Posted: Mon May 07, 2007 12:21 am Post subject: Re: Mouse routines - not VCL |
|
|
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
|
Posted: Mon May 07, 2007 7:25 am Post subject: Re: Mouse routines - not VCL |
|
|
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
|
Posted: Mon May 07, 2007 8:04 am Post subject: Re: Mouse routines - not VCL |
|
|
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 |
|
 |
|