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 > Q&A
Downloads

Q&A Using Flexsim and building models

  #1  
Old 04-07-2011
Chris Moon's Avatar
Chris Moon Chris Moon is offline
Flexsim User
 
Join Date: Feb 2011
Location: Atlanta
Posts: 14
Downloads: 18
Uploads: 0
Thanks: 8
Thanked 0 Times in 0 Posts
Rep Power: 112
Chris Moon is on a distinguished road
Question 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.
Attached Thumbnails
Click image for larger version
Name:	tracker.jpg
Views:	125
Size:	5.1 KB
ID:	1331   Click image for larger version
Name:	GUI.jpg
Views:	144
Size:	55.6 KB
ID:	1332  
  #2  
Old 04-07-2011
Jason Lightfoot Jason Lightfoot is offline
Flexsim Consultant
 
Join Date: Aug 2007
Location: Somerset, UK
Posts: 719
Downloads: 20
Uploads: 0
Thanks: 123
Thanked 953 Times in 446 Posts
Rep Power: 773
Jason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond reputeJason Lightfoot has a reputation beyond repute
Default

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)



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.