12-18-2009 10:39 PM
Hi to all,
Just want to ask, how do u create a pop up menu? when you click on a certain button, another view or option would appear like series of texts or instructions. thanks again. thanks
12-18-2009 11:18 PM
12-18-2009 11:52 PM
12-19-2009 12:18 AM
Hello,
I am not sure this will help you or not.. But this is the easiest way of creating a pop up menu using a one dialog command. Have a look and let me know whether it helps you or not..
You can also create a new VI and resize its window size using VI properties and use it as a pop up if you want it to work in your own desired manner.
Best Regards,
Nitzy
12-19-2009 04:45 AM
12-19-2009 05:25 AM
12-19-2009 10:19 AM
jmvrd wrote:
Its like creating a new window within the front panel when a certain button was clicked or pushed. I havent seen the sample yet. actually, cannot find what particular sample will suite my need.
If you search for "dialog" in the Example Finder you will find several examples. For instance, the "Dialog Box Demo" displays a popup window when you click the button. The example should be updated to use the event structure rather than the polling method that it currently uses, but the idea is the same. The subVI that is called can be customized to whatever you need to display.
12-19-2009
10:22 AM
- last edited on
07-09-2024
04:46 PM
by
Content Cleaner
jmvrd wrote:
Also, how can i create a play button? a button that will run the whole program instead pressing the run mode itself. thanks
You don't actually create a play button. You need to create an architecture that has your program idle until something happens. A while loop with an event structure within it will do that. See the "Login dialog" example that ships with LabVIEW for an example of how to use an event structure. Depending on how complex you need your program to be, you may need to look into using a state machine, master-slave, or producer-consumer architecture.