LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array Shortcut Menu Dismissed Event

Hello,
I have an issue with the "Shortcut Menu Dismissed Event" when I try to use this on an array element. This event appears only if the shortcut menu was previously activated from the egdes of the array (or from the Index Display). If I active the shortcut menu with the mouse over an element of the array, then the "Dismissed Event" will not appear.
Is there a way to solve this and make the event to trigger ?
I attached a vi to explain the issue.

0 Kudos
Message 1 of 7
(1,975 Views)

Hmmm... seems to work for me.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 7
(1,947 Views)

Replicated in 2020 SP1. Seems like a bug to me. As far as how to get the event to trigger, my only suggestion would be to use a cluster with numeric elements instead of a 1D array. Then, you can add Menu Dismissed events for each element of the cluster and the events will trigger, see the revised VI. The typical size of your array might prohibit that option though...

 

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 Kudos
Message 3 of 7
(1,940 Views)

@FireFist-Redhawk wrote:

Replicated in 2020 SP1. Seems like a bug to me. As far as how to get the event to trigger, my only suggestion would be to use a cluster with numeric elements instead of a 1D array. Then, you can add Menu Dismissed events for each element of the cluster and the events will trigger, see the revised VI. The typical size of your array might prohibit that option though...

 


How did you replicate the issue?  Whenever I right-clicked on an array element, the event seemed to trigger.  Did I do it wrong?  (LV 2020.)

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 7
(1,930 Views)

Right click on the array itself and you'll get two events, one when you activate the RCM, and one when you dismiss the RCM. Only the first event triggers when right clicking an element.

Redhawk
Test Engineer at Moog Inc.

Saying "Thanks that fixed it" or "Thanks that answers my question" and not giving a Kudo or Marked Solution, is like telling your waiter they did a great job and not leaving a tip. Please, tip your waiters.

0 Kudos
Message 5 of 7
(1,926 Views)

Here's a workaround that uses dynamic registration to capture events on the array elements instead of the array,

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 6 of 7
(1,916 Views)

Nothing to add here but an interesting observation that bit me in the past. You probably already know, but just in case.

 

A rick-click Short-cut Menu Event also triggers a "Mouse Leave" Event for the Pane. I had a transparent control that I hid or showed depending on whether one was in the Pane or Outside the Pane. Right-clicking made it look like someone left the pane when they didn't.

 

mcduff

0 Kudos
Message 7 of 7
(1,903 Views)