question

London MT avatar image
1 Like"
London MT asked Arun Kr answered

How to dock a custom GUI?

Hi all,

How do you dock a custom GUI? Can I dock the GUI without using tabcontrol as well? So without the possibility to have multiple tabs?

Thanks

Jarek

FlexSim 19.0.2
gui builder
· 1
5 |100000

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

London MT avatar image London MT commented ·

ideally I would like to do this with something like:

applicationcommand("dockwindow",p1,p2,p3);
1 Like 1 ·

1 Answer

·
Arun Kr avatar image
1 Like"
Arun Kr answered London MT commented
@London MT

You can dock the custom GUI by adding a tab window attribute to the custom GUI.

When you add the tab window node, also create a child node called OnDropWindow with the following script.

 applicationcommand("dockwindow", i, c, eventcode);

Not sure, whether this is the right approach.

But in most of the dockable GUI windows, they all have a tab window attribute as mentioned above.

Also, attaching a simple model.dock-gui.fsm

Regards,

Arun KR


tabwindow.png (11.3 KiB)
dock-gui.fsm (22.1 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.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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