LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our General Code Repository Files. Also, before posting here, check to see if your post doesn't fit into another subforum by category.


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Mouse Wheel Event in XControl, Is it possible?
LuPo
post Jul 25 2008, 12:01 AM
Post #1


I've come back for more.


Member
Posts: 2
Joined: 24-July 08
Member No.: 12103
Using LabVIEW Since:2008
LV:8.5.1 ,7.1.1 ,.
Italy Nothing Selected Nothing Selected


Hi,

I just want to do a simple XControl with a Labivew picture. The only feature I want to add is the possibility to use the mouse wheel to zoom the picture.
I have seen an example (http://forums.lavag.org/Mouse-Wheel-Scroll-Event-t148.html) where you can read the wheel status and behave accordingly but I think that example is not suitable for XControl because it requires a continuously running loop.

Any clue?


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Jul 25 2008, 12:01 AM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Ton
post Jul 25 2008, 05:59 AM
Post #2


CCT It
*****

Premium Member
Posts: 1337
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


QUOTE (LuPo @ Jul 25 2008, 02:01 AM) *
Any clue?

Yes,

in your init ability load a VI dynamically, this dynamic VI runs continuously and checks the wheel mouse.
In the init state you also create a user event, this is fed to the dynamic VI, also create a dynamic event registration. This registers for the user event, and is linked to the event structure of the facade ability.
In the close ability you kill the dynamic VI, unregister the event registration and the user event.

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
LuPo
post Aug 24 2008, 06:41 PM
Post #3


I've come back for more.


Member
Posts: 2
Joined: 24-July 08
Member No.: 12103
Using LabVIEW Since:2008
LV:8.5.1 ,7.1.1 ,.
Italy Nothing Selected Nothing Selected


QUOTE (Ton @ Jul 25 2008, 07:59 AM) *
Yes,

in your init ability load a VI dynamically, this dynamic VI runs continuously and checks the wheel mouse.
In the init state you also create a user event, this is fed to the dynamic VI, also create a dynamic event registration. This registers for the user event, and is linked to the event structure of the facade ability.
In the close ability you kill the dynamic VI, unregister the event registration and the user event.

Ton


Thanks, that helps alot.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Norm Kirchner
post Aug 25 2008, 02:54 AM
Post #4


Extremely Active
****

Premium Member
Posts: 596
Joined: 8-December 03
From: Dallas, Texas
Member No.: 208
Using LabVIEW Since:2000
LV:8.6 ,8.2.1 ,7.1.1
United States us_texas us_ohio My Gallery


QUOTE (Ton @ Jul 25 2008, 12:59 AM) *
Yes,

in your init ability load a VI dynamically, this dynamic VI runs continuously and checks the wheel mouse.
In the init state you also create a user event, this is fed to the dynamic VI, also create a dynamic event registration. This registers for the user event, and is linked to the event structure of the facade ability.
In the close ability you kill the dynamic VI, unregister the event registration and the user event.


Something else you may decide to look into are the ActiveX callback functions.
You can actually wire a LabVIEW control reference into the reference node, but I don't know how this will work w/ XControls.

A very interesting segway into something very different.
I'll see what I can whip out if I get the chance.

--------------------
Norman J. Kirchner Jr.
Automation Software Engineer

~,~ The Captain Was Here
Premium Blend


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 4th December 2008 - 06:12 AM