GUI refresh tracker

GUI refresh tracker

patryk_u2
Not applicable
7 Views
5 Replies
Message 1 of 6

GUI refresh tracker

patryk_u2
Not applicable

[ FlexSim 22.1.0 ]

Using Combobox in GUI I change rangemax to tracker but this change is visible only after closing and reopening GUI is it possible to refresh the tracker so that after changing rangemax GUI it will update. The same with the static text in GUI. Is it possible to change its name without closing and reopening the GUI?

1656493328326.png

0 Likes
Accepted solutions (1)
8 Views
5 Replies
Replies (5)
Message 2 of 6

jason_lightfootVL7B4
Autodesk
Autodesk
Try repaintview() or refreshview()
0 Likes
Message 3 of 6

patryk_u2
Not applicable

I tried. It doesn't work.

0 Likes
Message 4 of 6

jason_lightfootVL7B4
Autodesk
Autodesk
When do you need the value updated - if it's just when you open the GUI then you can do that using OnPreOpen
0 Likes
Message 5 of 6

patryk_u2
Not applicable

For example, when I have an open gui and check a checkbox in it or choose a value in combobox

0 Likes
Message 6 of 6

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

Here's a working example using refreshview.

TrackerGUI.fsm


You can type the value for rangemax in the edit box and the tracker will scale accordingly.

0 Likes