GUI basic setting issues

GUI basic setting issues

a9080109
Advocate Advocate
136 Views
1 Reply
Message 1 of 2

GUI basic setting issues

a9080109
Advocate
Advocate

[ FlexSim 23.0.15 ]

I have designed a GUI. Its main function is to control rack capacity and waiting time, but I have only completed maybe less than 10%. I would like to ask how I can implement it in the future.0331rack_autosave.fsm

0 Likes
137 Views
1 Reply
Reply (1)
Message 2 of 2

moehlmann_fe
Advocate
Advocate

If you haven't already done so, I would suggest you read through the documentation on GUIs to familiarize yourself with the basics.

I haven't really worked with GUIs much. So this was good practice for me as well. And the result might not be optimal. Someone with more experience could probably come up with a cleaner implementation.

A short overview of how the GUI now works:

In OnPreOpen the combobox item list gets populated with the names of the objects in the "AllRacks" group. The first object is set as the current item and a reference to it is assigend to the selectedrack node.

capture1.png

The coldlink attributes of the two edit fields use that reference to link to the respective variable of that rack.

capture2.png

In the OnSelect code of the combobox the reference is changed to the newly selected rack and the content of the edit fields is updated accordingly.

capture3.png

The apply attribute makes the Apply button overwrite the linked variable nodes.

I have linked the GUI to a shape object in the model for now. So you can open it by double-clicking on the object.

capture4.png

0331rack-fm.fsm

0 Likes