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
|
||||
|
||||
GUI Tracker Question
Hello.
I have a question about a tracker in GUI. In my GUI, I put a tracker and a text box together in a panel. Currently, I made the tracker to assign some value (which the bar indicates) to a global variable. I set the minimum value of a tracker as 0 and maximum as 1. Also, I made the text box show the assigned value of a global variable. The problem I face with is that after I close GUI and reopen it, the text box shows the value of a global variable, but the tracker does not show the value of a global variable. The tracker just indicates the minimum value every time I reopen the GUI. Is there anyway to make the tracker to indicate the value of a global variable like the text box? Thank you. |
#2
|
|||
|
|||
Assign the value to a node in hotlinkx, and then just return the node.
eg: treenode valuenode=node(">value",c); // add 'value' at the same level as the hotlinkx set(valuenode,<globalvariable>); return valuenode; |
The Following 2 Users Say Thank You to Jason Lightfoot For This Useful Post: | ||
RalfGruber (04-08-2011) |