question

Omar Aguilera Rico avatar image
0 Likes"
Omar Aguilera Rico asked Phil BoBo edited

Scroll bar in a GUI

Hello! How can I assign a scroll bar to a GUI? I have a GUI with enough information vertically and horizontally. I'm interested in knowing how to add a scroll bar horizontally and vertically to the GUI window.

FlexSim 19.1.2
guiscrollbar
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

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered Phil BoBo edited

Attached (scroll-panel.fsm) is a sample model with a scrolling panel. (The model was originally built in 5.1.2, but it opens and works fine in 19.2.4.)

How to work with it:
The last widget within the "scrollpanel" panel should be a panel with whatever widgets you want in it. If that panel's size is larger than the size of the "scrollpanel", then the scroll bars will appear (one or both depending on the x and y sizes of the panels). If after resizing the panels, one of the scrollbars appears or disappears, you may have to refresh the window with F5 twice to get the scrollbars to be the correct sizes.

Copy the widgets into your model's GUI and put your widgets into thepanel instead of the example ones.


scroll-panel.fsm (13.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.