LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to make a snap-slider

Hi Prashant,

Here the 8.2 version zip folder...

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 11 of 14
(756 Views)
An older thread called mouse up event on a slide discusses this issue as well.  Sean C.'s reply there includes a workaround to account for mouse up events outside the front panel. 
Jennifer R.
National Instruments
Applications Engineer
0 Kudos
Message 12 of 14
(745 Views)
Thank you, Jennifer, and thanks Partha for converting my zip folder.

My issues remain from my previous post - the pane mouse-up event works in a vi, but not in an XControl.  I have struggled some more with this one and have found no solution.  I've decided to be unconcerned with moving off the entire panel, for now.

So, I'm still seeking help on the previous two issues!  Please let me know if I can provide more information.

0 Kudos
Message 13 of 14
(732 Views)

Hi Partha, Thanks for the conversion.

Hi Lee_Jay,

The "Pane: Mouse Up" event which you are handling in the facade VI is for the front panel of the facade. The "Pane: Mouse Up" event for the test VI in which you will place the XControl will be different. I am not sure if you can handle this event in the Facade VI. I tried dynamic event registration but "Register for events" function will accept references only to local objects. You may have to handle a "Pane: Mouse Up" event in your test VI. But I guess this defeats the purpose of having an XControl in your case.

I am also new to XControls and hence not very clear about how the different parts work together.

Also, in the "Data Change" event of your facade VI you need to update the slider using a local variable. The "Data Change" event will be called when you write a value to the XControl's terminal, local or value property. In these cases the "Slide: Value Change" event is not called.





0 Kudos
Message 14 of 14
(715 Views)