ATTENTIONThis FlexSim Community Forum is read-only. Please post any new questions, ideas, or discussions to our new community (we call it Answers) at https://answers.flexsim.com/. Our new Question & Answer site brings a modern, mobile-friendly interface and more focus on getting answers quickly. There are a few differences between how our new Q&A community works vs. a classic, threaded-conversation-style forum like the one below, so be sure to read our Answers Best Practices. |
flexsim.com |
#1
|
|||
|
|||
Display a GUI in a modal window
While a model is running, it is sometimes useful to have a pop-up window which freezes the model, until the user presses a button or closes this pop-up window.
The command msg(str caption, str text [, num buttontype]) lets you create a message box with a title bar displaying the caption, the text written inside the box, and buttons such as OK, Cancel, Yes or No. This message box is a modal window: it requires the user to interact with it before he can return to operating FlexSim. But you could feel like creating your own GUI and open this GUI in a modal window like the msg command. To create a modal view, you just need to add in a node named "modal" in your GUI's attribute sub-tree. |
The Following 6 Users Say Thank You to Clair A For This Useful Post: | ||
Vadim Fooks (01-20-2013) |
Tags |
gui, modal, view, window |
Thread | Thread Starter | Forum | Replies | Last Post |
Pick window on conveyor. | Neil Brandon | Q&A | 9 | 02-04-2013 03:12 AM |
problem about GUI window | Dane Lee | Q&A | 1 | 12-02-2010 06:53 AM |
Keeping the Ortho View Window in the background? | Nico Zahn | Q&A | 4 | 03-10-2009 10:16 AM |
Set Window position and size | Nico Zahn | Q&A | 5 | 09-03-2008 02:09 PM |
about "no select" and "show parameter window from side bar" | qin tian | Gripes and Goodies | 3 | 03-21-2008 08:10 AM |