Skip to content
otvv edited this page Mar 5, 2020 · 11 revisions

CForm::AddTab

What it does:

This function adds a new tab inside the Form.

Parameters:

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.

Widgets:

List of widgets that are using this function:

  • Form
  • Tab (Not implemented yet.)

Setting up a Tab

Here's how you can add a new tab into the Form:

buildrPattern.Widget(Tab).Title("Tab").Font("Tahoma", 12, true).Spawn(Form);

NOTE: For more tabs, just repeat the same process.

After adding this into your menu, You should have a Form with 1 tab.


What's next?

Next you will learn about the AddForm function.