phuzionz Posted June 1, 2007 Report Share Posted June 1, 2007 Dear users, I am looking for a way to make your own Labview pop up menu. I knwow that you can use the "prompt User For input". But is their anather way to do it. I am working wirh labview 8.2.1 and for the moment not an advanced user, but who knows in the futere! Thanks for your help, Jeroen Quote Link to comment
Jeff Plotzke Posted June 1, 2007 Report Share Posted June 1, 2007 QUOTE(phuzionz @ May 31 2007, 11:14 AM) Dear users,I am looking for a way to make your own Labview pop up menu. I knwow that you can use the "prompt User For input". But is their anather way to do it. I am working wirh labview 8.2.1 and for the moment not an advanced user, but who knows in the futere! Thanks for your help, Jeroen Jeroen, You can easily make a subVI into a pop up window -- In VI properties, go to "Window Appearance", and make sure that when you customize that "Show Front Panel when Called" and "Close afterwards" is selected. Then, in your subVI, have the VI wait for a user to press a button (or any action that you want the user to do with the popup) I've attached a sample popup dialog box I created that just waits for a user to click 'OK' or 'Cancel' and then outputs if the user clicked the cancel button. Quote Link to comment
crelf Posted June 1, 2007 Report Share Posted June 1, 2007 QUOTE(phuzionz @ Jun 1 2007, 01:14 AM) I am looking for a way to make your own Labview pop up menu. I knwow that you can use the "prompt User For input". But is their anather way to do it. Do you want a popup window or a popup menu - your post is a little confusing. If you want a popup window, then Jeff's desctiprion will work, but if you want a popup menu, then you can create a custom one for each control/indicator on your front panel. Quote Link to comment
Jeff Plotzke Posted June 1, 2007 Report Share Posted June 1, 2007 QUOTE(crelf @ May 31 2007, 01:19 PM) Do you want a popup window or a popup menu - your post is a little confusing. If you want a popup window, then Jeff's desctiprion will work, but if you want a popup menu, then you can create a custom one for each control/indicator on your front panel. Good point... I took it as popup window since that's what "Prompt User for Input" is... Quote Link to comment
crelf Posted June 1, 2007 Report Share Posted June 1, 2007 QUOTE(Jeff Plotzke @ Jun 1 2007, 03:30 AM) Good point... I took it as popup window since that's what "Prompt User for Input" is... Yeah - that was the part that confused me... Quote Link to comment
Yair Posted June 1, 2007 Report Share Posted June 1, 2007 What is a popup menu? If you are refering to right-click context-sensitive menu, there have been several implementations posted both to the LAVA forums and to the NI forums which allow nested right click context menus., so I suggest you search for them. Some use OS calls and some do it fully in LV. What would probably be even better is using the built-in right click menus available in 8.x by right clicking a control and selecting Advanced. These can be read with the event structure. Quote Link to comment
Mike Ashe Posted June 2, 2007 Report Share Posted June 2, 2007 QUOTE(yen @ May 31 2007, 03:15 PM) If you are refering to right-click context-sensitive menu, there have been several implementations posted both to the LAVA forums and to the NI forums ... What would probably be even better is using the built-in right click menus available in 8.x by right clicking a control and selecting Advanced. These can be read with the event structure. If you search here on LAVA you will indeed find several examples. I like http://forums.lavag.org/index.php?showtopic=2453&view=findpost&p=8374' target="_blank">this one for Menus on Trees (example by Jim Kring).And I've used the technique on a recent project, so I know Jim's example scales up well, with a bit of tinkering. Cheers, Quote Link to comment
phuzionz Posted June 2, 2007 Author Report Share Posted June 2, 2007 Thanks a lot for the comments, it was very usefull. I was looking for a popup wondow, thus jeff's example was excellent. Quote Link to comment
crelf Posted June 2, 2007 Report Share Posted June 2, 2007 QUOTE(Jeff Plotzke @ Jun 1 2007, 03:30 AM) I took it as popup window... You win Jeff Quote Link to comment
bishop Posted February 6, 2009 Report Share Posted February 6, 2009 QUOTE (Jeff Plotzke @ May 31 2007, 03:56 PM) Jeroen,You can easily make a subVI into a pop up window -- In VI properties, go to "Window Appearance", and make sure that when you customize that "Show Front Panel when Called" and "Close afterwards" is selected. Then, in your subVI, have the VI wait for a user to press a button (or any action that you want the user to do with the popup) I've attached a sample popup dialog box I created that just waits for a user to click 'OK' or 'Cancel' and then outputs if the user clicked the cancel button. Your sample vi sounds exactly like the kind of thing I would like to see. However, I only have labview7.1 which won't open it? Do you have a version of your program that is compatible with Labview7.1? Many thanks. 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.