Niklas -
> How to detect mouse events in VEE 6 ???
There are a few calls in user32.dll that can help out:
> Plot mouse postion (x,y)
GetCursorPos will return the current position of the mouse.
> Detect right button click
> Detect left button click
> Detect scroll button click
GetKeyState or GetAsyncKeyState can return the current state of the left,
right and middle mouse buttons.
> Detect scroll up
> Detect scroll down
These are a bit trickier because all this information is sent in
WM_MOUSEWHEEL messages. Basically, you subclass the VEE window and look for
these messages. Somebody has probably already done it in an ActiveX control.
If not, it's not all that difficult.
Documentation for these (and all Windows functions) can be found at:
http://msdn.microsoft.com/library
-SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> How to detect mouse events in VEE 6 ???
There are a few calls in user32.dll that can help out:
> Plot mouse postion (x,y)
GetCursorPos will return the current position of the mouse.
> Detect right button click
> Detect left button click
> Detect scroll button click
GetKeyState or GetAsyncKeyState can return the current state of the left,
right and middle mouse buttons.
> Detect scroll up
> Detect scroll down
These are a bit trickier because all this information is sent in
WM_MOUSEWHEEL messages. Basically, you subclass the VEE window and look for
these messages. Somebody has probably already done it in an ActiveX control.
If not, it's not all that difficult.
Documentation for these (and all Windows functions) can be found at:
http://msdn.microsoft.com/library
-SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
How to detect mouse events in VEE 6 ???
I want to detect/do things like...
Plot mouse postion (x,y)
Detect right button click
Detect left button click
Detect scroll button click
Detect scroll up
Detect scroll down
Is it possible ?
Hlsningar/Regards
Niklas Lithander
Test Development
NOTE Norrtelje AB
Box 185
761 22 Norrtlje, SWEDEN
Tel: +46 (0) 176 794 71
Fax: +46 (0) 176 198 00
Email: niklas.lithander@norrtelje.note.se
Web: http: www.note.se
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".