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
|
||||
|
||||
Custom GUI: Graph OnDraw
The basic things that you can do to the graph gui widget are documented in the manual in Miscellaneous Concepts > View Attributes Reference. The various attributes are described under the subheading "Graph," and the next three subheadings explain what you can do to various types of graphs.
If you want to get fancy, then you can write your own OnDraw code for the graph widget and use commands such as drawpie(), drawtext(), and drawrect() to draw your own custom graph. Last edited by Phil BoBo; 11-19-2014 at 05:57 PM. |
The Following 3 Users Say Thank You to Phil BoBo For This Useful Post: | ||
mark.gormley (08-10-2011) |
#2
|
|||
|
|||
Below are some more GUI examples created using the OnDraw approach that Phil presented.
Heat Map http://www.flexsim.com/community/for...ead.php?t=1864 State Bar Chart http://www.flexsim.com/community/for...read.php?t=409 |
The Following 5 Users Say Thank You to Kris Geisberger For This Useful Post: | ||
Vadim Fooks (05-16-2013) |
#3
|
|||
|
|||
One question about the heatmap example.
I try to understand all the references in this model to create my own GUI. But I have some questions: Where does the viewfocus: @/container refer to ? Where can I find this container in the Tree ? Kind regards, KvThiel |
Thread | Thread Starter | Forum | Replies | Last Post |
Custom Console | Phil BoBo | User Development | 6 | 12-12-2011 04:19 AM |
Show global variable as line graph in Recorder | Congshi Wang | Q&A | 1 | 12-08-2010 01:22 AM |
Need Example Graph in a UI ( With the Graph Control) | Gleny Rodriguez | Q&A | 2 | 06-09-2010 08:31 AM |
GUI State Graph | Anthony Timmiss | Q&A | 6 | 01-26-2009 02:30 AM |
State Graph in Model Control GUI | Tom David | Q&A | 4 | 11-21-2007 12:50 AM |