How to use TabControl ?

0

Hello

About TabControl ..
Please tell me the C++ sample code of how to dynamically increase or decrease the number of Tabs.

Embarcadero C++ Tokyo 10.2
Multi-device application

Responses (2)
  • Accepted Answer

    Wednesday, January 10 2018, 05:01 PM - #Permalink
    0

    Dear Radoslav

    Thank you very much.
    "TabControl1->Add (no argument)" was not found in the function list which automatically displays while coding.
    I was worrying about that, but I solved it easily.

    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, January 10 2018, 02:15 AM - #Permalink
    1

    This is how you insert an item in the TabControl

    TTabItem *tab = TabControl1->Add();
    tab->Text = "Test";

    This is how you delete an item from the TabControl:

    TabControl1->Delete(tabIndex);

     

    The reply is currently minimized Show
Your Reply

Please login to post a reply