LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unsuccessfully trying to use a mouse up event with a ring control

Hi everyone !

I´m trying to use a mouse up event with a ring control but it isn´t working; according to LabVIE help, a mouse up event is
"Generated when the user releases the mouse button on a specific control. If you configure this event for a text ring or enumerated type control, LabVIEW generates the event only when you release the mouse button over the increment or decrement buttons" but , whenever I press the left mouse button in the ring control and release it no event is generated. Can anyone help me?

Any help at all will be deeply appreciated,

Giovani


I
0 Kudos
Message 1 of 6
(3,462 Views)
only when you release the mouse button over the increment or decrement buttons
Are you releasing the mouse over those buttons (the ones on the left)? If you click anywhere else you get a popup control which gets in the way.
 
If you want an event which will detect changing the value of the ring, use Value Change.

___________________
Try to take over the world!
Message 2 of 6
(3,448 Views)
Works for me with an enum or text ring. See attached.

<After Post Edit: Looks like tst posted just before I was finishing my reply, as we're both saying the same thing.>

Message Edited by smercurio_fc on 02-15-2006 11:26 AM

0 Kudos
Message 3 of 6
(3,446 Views)
Giovani,

I think the behavior comes from the fact that a mouse down within the ring's input field opens another control object which then sort of intercepts the mouse up event. On left mouse down it is the ring's or enum's selection list that opens and on right mouse down it is the context menu which opens.

You can see this by trying the following: click-and-hold the mouse outside the ring, move it over the ring and release it there. You will see that the mouse-up event is now detected. Or, alternatively, disable the context menu on right click. Then also a right-mouse-button-up is detected.

The right-button-up event is, consequently, also missed on any other control whose context menu is enabled.

I admit that the behavior you found is not what one expects. I'm not sure if one should call it a bug.


-Franz
Message 4 of 6
(3,437 Views)

Hello,

   How do I get the increment and decrement button on a ring control to appear? When I go to the properties for the ring control the check box to show the increment/decrement buttons is grayed out?

Regards,

Kaspar

 

  

 

Regards,


Kaspar
0 Kudos
Message 5 of 6
(3,213 Views)

Instead of posting an unrelated question to an old thread, you should really post a brand new question.

In any case, if the option is greyed out, make sure you have a control and not an indicator.

Message 6 of 6
(3,202 Views)