question

Patryk avatar image
0 Likes"
Patryk asked Jason Lightfoot commented

How add Tabs to GUI

I would like to create a gui with tabs where I could place buttons, subtitles or trackers. I used tabs for this purpose, only the inserted buttons and trackers do not work, and the subtitles are not visible. Is there maybe another way to do this?


1700488557838.png

FlexSim 23.2.2
guitrackertabs
1700488557838.png (71.9 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 ·

When I've done this I've edited pagelist of the tab control which allows you to use standard/common pages along with those that are custom.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·
Can you post the model so we can see what's happening and how you've set it up?
0 Likes 0 ·
Patryk avatar image Patryk Jason Lightfoot ♦ commented ·

I am sending the model in attachments. I want to change values in the table using the trackerTest.fsm

0 Likes 0 ·
test.fsm (36.5 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ commented ·

Hi @Patryk, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes 0 ·

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

First off, your tabs should be viewwindowtype 102 for the text to display.

I see no buttons.

Your sliders update the global table. You need to add code to the opening of the GUI/pages to set the sliders to the values from the table.

· 3
5 |100000

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

Patryk avatar image Patryk commented ·

I just tried it and the sliders do not change the values in the table. Additionally, when I added a button with the close function earlier, it did not close the gui1700553465779.png

0 Likes 0 ·
1700553465779.png (35.4 KiB)
Patryk avatar image Patryk Patryk commented ·

I added button and spinner to change value in GlobalTable1. Unfortunately don't work

Test_1.fsm

0 Likes 0 ·
test-1.fsm (41.9 KiB)
Jason Lightfoot avatar image Jason Lightfoot ♦ Patryk commented ·

Odd - it works for me:

test_GUITabs_jl.fsm

0 Likes 0 ·
test-guitabs-jl.fsm (31.4 KiB)

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.