ATTENTION

This 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

Go Back   FlexSim Community Forum > FlexSim Software > Tips and Tricks
Downloads

Tips and Tricks Share helpful modeling ideas

  #1  
Old 10-13-2008
Phil BoBo's Avatar
Phil BoBo Phil BoBo is offline
Flexsim Development
 
Join Date: Jan 2008
Posts: 756
Downloads: 109
Uploads: 18
Thanks: 385
Thanked 1,483 Times in 525 Posts
Rep Power: 1174
Phil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond reputePhil BoBo has a reputation beyond repute
Default 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
Attached Files
File Type: zip AdvModelControl1_finished.zip (40.4 KB, 445 views)
The Following 4 Users Say Thank You to Phil BoBo For This Useful Post:
qin tian (11-18-2008)
  #2  
Old 10-21-2011
Steven Hamoen's Avatar
Steven Hamoen Steven Hamoen is offline
Talumis, Flexsim Distributor, The Netherlands
 
Join Date: Aug 2007
Location: Soest, NL
Posts: 854
Downloads: 43
Uploads: 0
Thanks: 391
Thanked 661 Times in 379 Posts
Rep Power: 684
Steven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond reputeSteven Hamoen has a reputation beyond repute
Default

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


All times are GMT -6.
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.
Copyright 1993-2018 FlexSim Software Products, Inc.