-
-
Notifications
You must be signed in to change notification settings - Fork 54
AddTab
otvv edited this page Jul 19, 2020
·
11 revisions
This function adds a new tab inside the Form.
This function takes a std::shared_ptr<FGUI::CTab>
as an argument.
The argument is: The instance (pointer) of the tab that you want to add into the Form.
List of widgets that are using this function:
Tab
Here's how you can add a new tab into the Form:
buildrPattern.Widget(Tab).Tab("Tab 1")
.Tab("Tab 2")
.Tab("Tab 3")
.Tab("Tab 4")
.Tab("Tab 5")
.Font("Tahoma", 12, true).Spawn(Container);
After adding this into your menu, You should have a Tab widget (panel) with 5 tab buttons.
Next you will learn about the AddWidget function.
You can also read the library comments/functions for additional info.