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
|
||||
|
||||
Edit Labels Model Control GUI
Here is the finished GUI that we started to make during the GUI section of the Advanced Training at the Flexsimposium.
"Objective: Creating a GUI with a listbox that displays all the objects in the model, and a table that displays the selected object's labels for editing. Attributes discussed: viewfocus, cellwidth, cellheight, items, itemcurrent, OnSelect, OnOpen, OnPreOpen Commands discussed: c, repaintview(), refreshview(), set(), sets(), nodeinsertinto(), nodeadddata(), nodetopath() Concepts discussed: “c”, repainting vs. refreshing, VIEW:/active" For more information about creating GUIs, you can refer to some of Alex's video tutorials: http://www.flexsim.com/community/for...=1428#post1428 |
The Following 4 Users Say Thank You to Phil BoBo For This Useful Post: | ||
qin tian (11-18-2008) |
#2
|
||||
|
||||
I know this is an old post but I think my question would fit in this thread.
How can I make a piece of code execute when I double click on the listbox? I currently have implemented an extra button at the bottom of the listbox that executes code based on the selection that is made in the listbox, but it would be so much nicer if I could simply double click it. As far as I can tell the only trigger that goes off is the OnSelect but that one can't process a double click (at least clicking it twice doesn't give you a pt twice). The only thing I can think of right now is setting a label the first time it is selected and if it is selected a second time within a certain amount of time it counts for a double click. Any other solutions? |
Thread | Thread Starter | Forum | Replies | Last Post |
Version control of Flexsim model | AlanZhang | Q&A | 11 | 12-09-2014 11:12 AM |
Edit GUI's in userlibs | Steven Hamoen | User Development | 1 | 03-05-2009 03:43 AM |
GUI: cant enter GUI edit mode | KelvinHo | Q&A | 4 | 04-01-2008 10:44 AM |
can I use an edit box entry to update multiple labels? | KelvinHo | Q&A | 10 | 03-28-2008 07:17 AM |
State Graph in Model Control GUI | Tom David | Q&A | 4 | 11-21-2007 12:50 AM |