question

Steven Chen avatar image
0 Likes"
Steven Chen asked Felix Möhlmann answered

Change Default Selection of Combobox On Open

Hello,

I would like to set itemcurrent of combobox by FlexScript whlie custom GUI opening.

But text of combobox is not refreshed.

screenshot-2022-03-24-133010.png

combobox_change_default_selection_v22.0.fsm

FlexSim 22.0.1
custom guicombobox
5 |100000

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

1 Answer

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

Calling "comborefresh()" in "OnOpen" instead of "OnPreOpen" seems to do the trick.

1648106655612.png


1648106655612.png (31.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.