Jump to content

Catching "shortcut menu selection" in subpanel


Recommended Posts

Is there a way to have the VI running in a subpanel catch the right clicks (User menu) instead of the parent VI?

A right-click on an empty subpanel returns "SubPanel" for the SubObj class name.

When a subPanel is loaded, it will return the subpanel's control/indicator class. However the "User Menu Selection" event will run in the parent VI. Anyone knows a way around that?

Link to comment

I hadn't thought about the fact that I use "Pane:User Menu Activation" vs any other object directly. But it doesn't seem to be the culprit. It behaves actually as if I had made the subpanel with "transparent background", which it is not.

Ravi, thanks for the workaround. For now, it will do just fine. :thumbup1:

Link to comment

If you can fit the subpanel to pane, it shouldn't be a problem. If you can not, can you put a transparent tab control (fit to pane) behind the subpanel and use the menu activation of the tab instead?

Man, you are on fire with the transparent tricks. :D

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.