Jump to content

Discarding Run-time Shortcut Menu


Recommended Posts

Hi,

I am trying to find out if there is any way to know when a user discard a Run-time Shortcut Menu (in LV 8.2, 8.5 or 8.6).

For instance I am trying to find out when the user either:

  • Press ESC when the Run-time Shortcut Menu is visible
  • Click outside (of any LabVIEW window) to "escape" the Run-time Shortcut Menu

As far as I can tell there is no way to get this information.

Thanks

PJM

Link to comment

Hi,

I am trying to find out if there is any way to know when a user discard a Run-time Shortcut Menu (in LV 8.2, 8.5 or 8.6).

For instance I am trying to find out when the user either:

  • Press ESC when the Run-time Shortcut Menu is visible
  • Click outside (of any LabVIEW window) to "escape" the Run-time Shortcut Menu

As far as I can tell there is no way to get this information.

Thanks

PJM

Link to comment

QUOTE (PJM_labview @ Jan 16 2009, 05:25 PM)

I am trying to find out when the user either:

  • Press ESC when the Run-time Shortcut Menu is visible
  • Click outside (of any LabVIEW window) to "escape" the Run-time Shortcut Menu

In LabVIEW 8.6 there is a private event called "Shortcut Menu Dismissed". There's also the equally-handy "Operate Menu Dismissed" that fires when you dismiss the operate menu of a ring, enum, etc.

-D

Link to comment

QUOTE (PJM_labview @ Jan 16 2009, 05:25 PM)

I am trying to find out when the user either:

  • Press ESC when the Run-time Shortcut Menu is visible
  • Click outside (of any LabVIEW window) to "escape" the Run-time Shortcut Menu

In LabVIEW 8.6 there is a private event called "Shortcut Menu Dismissed". There's also the equally-handy "Operate Menu Dismissed" that fires when you dismiss the operate menu of a ring, enum, etc.

-D

Link to comment

QUOTE (Darren @ Jan 17 2009, 12:10 AM)

In LabVIEW 8.6 there is a private event called "Shortcut Menu Dismissed". There's also the equally-handy "Operate Menu Dismissed" that fires when you dismiss the operate menu of a ring, enum, etc.

-D

True, but there is no such private events for a right-click on the Pane, only on a control/indicator. (Anyway, as far as I know...)

Link to comment

QUOTE (Darren @ Jan 17 2009, 12:10 AM)

In LabVIEW 8.6 there is a private event called "Shortcut Menu Dismissed". There's also the equally-handy "Operate Menu Dismissed" that fires when you dismiss the operate menu of a ring, enum, etc.

-D

True, but there is no such private events for a right-click on the Pane, only on a control/indicator. (Anyway, as far as I know...)

Link to comment

QUOTE (normandinf @ Jan 16 2009, 07:32 PM)

I see that you use the input VIs to solve this issue. Unfortunately, I need a cross platform solution and the input VIs do not exist on Mac.

Note: If I can not find another solution, I will use this.

QUOTE (Darren @ Jan 16 2009, 09:10 PM)

In LabVIEW 8.6 there is a private event called "Shortcut Menu Dismissed". There's also the equally-handy "Operate Menu Dismissed" that fires when you dismiss the operate menu of a ring, enum, etc.

-D

This is good to know. Now I just have to figure out how to do that in LV 8.2...

I found a way to get at the "click outside of LV" info. I create an asynchronous VI with both attributes of "floating" and "hide when LV not active" set to true. When this VI "FP.State" becomes "hidden" I fire a user event that tells me that LV has becomes "inactive".

Now I am left with trying to find out whe the user escape out (press ESC) of the Run-time Shortcut Menu.

Link to comment

QUOTE (normandinf @ Jan 16 2009, 07:32 PM)

I see that you use the input VIs to solve this issue. Unfortunately, I need a cross platform solution and the input VIs do not exist on Mac.

Note: If I can not find another solution, I will use this.

QUOTE (Darren @ Jan 16 2009, 09:10 PM)

In LabVIEW 8.6 there is a private event called "Shortcut Menu Dismissed". There's also the equally-handy "Operate Menu Dismissed" that fires when you dismiss the operate menu of a ring, enum, etc.

-D

This is good to know. Now I just have to figure out how to do that in LV 8.2...

I found a way to get at the "click outside of LV" info. I create an asynchronous VI with both attributes of "floating" and "hide when LV not active" set to true. When this VI "FP.State" becomes "hidden" I fire a user event that tells me that LV has becomes "inactive".

Now I am left with trying to find out whe the user escape out (press ESC) of the Run-time Shortcut Menu.

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.