question

Patryk avatar image
0 Likes"
Patryk asked Jason Lightfoot edited

GUI refresh tracker

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

FlexSim 22.1.0
gui
1656493328326.png (46.0 KiB)
· 4
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·
Try repaintview() or refreshview()
0 Likes 0 ·
Patryk avatar image Patryk Jason Lightfoot ♦♦ commented ·

I tried. It doesn't work.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Patryk commented ·
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 0 ·
Show more comments

1 Answer

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot edited

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.


trackergui.fsm (25.7 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.