kalyanramu Posted September 16, 2004 Report Share Posted September 16, 2004 Hi all, Does anyone how we can create our pop-menus for controls. For example, If I right click on a graph, I want to add my own label in the pop-menu like "Copy Data between cursors". How can I achieve this one. Any help on this would be greatly appreciated. Thanks, Kalyan Quote Link to comment
didierj Posted September 16, 2004 Report Share Posted September 16, 2004 Unfortunately this is a big leak of LV - at least until LV7.0, for 7.1 I don't know. I also often missed them, or at least the ability to disable parts of the standard pop-up menu. You can disable the ability of pop-up menu for the whole vi (vi-properties-> appearance-> customize-> Allow run-time shortcut menus), that's all. A workaround would be to disable them and show a dialog-vi at mouse position on a right-mouse-button click event. Seems complicated: 1. create a sub-vi (as dialog) and design it the way that just either a table or text ring is visible (no border, menus,...) 2. disable on your top-vi the run-time shortcut menus 3. put over your graph a transparent control that allows the event: right-mouse-button click 4. react on this event and show the dialog-subvi. 5. read the mouse position and reposition your dialog-subvi. I thougth there was once an article in the LTR, but since I don't own the full collection I didn't found it. If anybody has more info? Didier Quote Link to comment
Norm Kirchner Posted September 16, 2004 Report Share Posted September 16, 2004 Just because I'm feeling giving today. Heres a great place to start from. Download File:post-208-1095342040.vi Quote Link to comment
Michael Aivaliotis Posted September 16, 2004 Report Share Posted September 16, 2004 Hi all,Does anyone how we can create our pop-menus for controls. For example, If I right click on a graph, I want to add my own label in the pop-menu like "Copy Data between cursors". How can I achieve this one. Any help on this would be greatly appreciated. 1765[/snapback] See Here: http://forums.lavausergroup.org/index.php?showtopic=345 Quote Link to comment
roxe Posted September 20, 2004 Report Share Posted September 20, 2004 Just because I'm feeling giving today.Heres a great place to start from. 1773[/snapback] hi... I try to download ur attachment..but unfortunately i'm using LV7.0..I feel so dissapointed.Can u give me another axample which are using LV7.0?I really appreciate ur help... Regards, Roxe Quote Link to comment
Michael Aivaliotis Posted September 20, 2004 Report Share Posted September 20, 2004 I try to download ur attachment..but unfortunately i'm using LV7.0..I feel so dissapointed.Can u give me another axample which are using LV7.0?I really appreciate ur help...1828[/snapback] I downconverted it for you: Download File:post-2-1095691375.viversion->LV7.0 Quote Link to comment
roxe Posted September 21, 2004 Report Share Posted September 21, 2004 I downconverted it for you:Download File:post-2-1095691375.viversion->LV7.0 1831[/snapback] thank you so much.... 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.