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)
|
![]() |
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 ,.
|
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?
|
||
|
|
|||
| Ad |
Jul 25 2008, 12:01 AM
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
My Blog
My Gallery
|
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 --------------------
|
||
|
|
|||
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 ,.
|
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.
|
||
|
|
|||
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
My Gallery
|
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 ![]()
|
||
|
|
|||
![]() ![]() |
| Time is now: 4th December 2008 - 06:12 AM |