PJM_labview Posted January 17, 2009 Author Report Share Posted January 17, 2009 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 Quote Link to comment
PJM_labview Posted January 17, 2009 Report Share Posted January 17, 2009 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 Quote Link to comment
Francois Normandin Posted January 18, 2009 Report Share Posted January 18, 2009 I would tend to agree that there is no way to tell directly. But this complicated use of events does it: Download File:post-10515-1232163016.vi (LV 8.6) Quote Link to comment
Francois Normandin Posted January 18, 2009 Report Share Posted January 18, 2009 I would tend to agree that there is no way to tell directly. But this complicated use of events does it: Download File:post-10515-1232163016.vi (LV 8.6) Quote Link to comment
Darren Posted January 18, 2009 Report Share Posted January 18, 2009 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 Quote Link to comment
Darren Posted January 18, 2009 Report Share Posted January 18, 2009 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 Quote Link to comment
LAVA 1.0 Content Posted January 18, 2009 Report Share Posted January 18, 2009 I like private events (and methods, properties) however it is not clear to see that they are private (like blue invoke nodes). Most of the time it is documented in the context help of that specific event, but at a glance it is hard to see. Does anyone know a solution? Ton Quote Link to comment
LAVA 1.0 Content Posted January 18, 2009 Report Share Posted January 18, 2009 I like private events (and methods, properties) however it is not clear to see that they are private (like blue invoke nodes). Most of the time it is documented in the context help of that specific event, but at a glance it is hard to see. Does anyone know a solution? Ton Quote Link to comment
Francois Normandin Posted January 18, 2009 Report Share Posted January 18, 2009 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...) Quote Link to comment
Francois Normandin Posted January 18, 2009 Report Share Posted January 18, 2009 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...) Quote Link to comment
PJM_labview Posted January 18, 2009 Author Report Share Posted January 18, 2009 QUOTE (normandinf @ Jan 16 2009, 07:32 PM) I would tend to agree that there is no way to tell directly. But this complicated use of events does it:Download File:post-10515-1232163016.vi (LV 8.6) 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. Quote Link to comment
PJM_labview Posted January 18, 2009 Author Report Share Posted January 18, 2009 QUOTE (normandinf @ Jan 16 2009, 07:32 PM) I would tend to agree that there is no way to tell directly. But this complicated use of events does it:Download File:post-10515-1232163016.vi (LV 8.6) 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. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.