Is there a command to change the focus from GUI view to model view?

Is there a command to change the focus from GUI view to model view?

sebastian_lang
Not applicable
296 Views
1 Reply
Message 1 of 2

Is there a command to change the focus from GUI view to model view?

sebastian_lang
Not applicable

[ FlexSim 17.0.2 ]

Hi,

I am facing the following problem: I've build a GUI with some buttons. Every button has a script, which should be executed after pressing the corresponding button. I just noticed that each script will be only executed after pressing the button and after clicking on the model view. More precisely, it seems to be necessary that I loose the focus of the GUI and focus instead the model to execute the script.

So my questions are:

1) Is there a command to change the focus from GUI to model view (and also back from model view to GUI)?

Or

2) Is there a way to execute the scripts correctly without changing the focus?

Thanks in advance and nice regards!

Sebastian

0 Likes
Accepted solutions (1)
297 Views
1 Reply
Reply (1)
Message 2 of 2

sebastian_lang
Not applicable
Accepted solution

Ok, I just found the solution by myself. The command

 repaintall();

refreshs the model view immediately