Olaan Expert Licensed User Longtime User May 22, 2012 #1 Hi All, Please help me.. I create Tabhost has 1 Tab. whenever I click title tab ,it will add another tab. Look like MS IE Browser. P.S. I use TabHostExtras Library. Best Regards Theera
Hi All, Please help me.. I create Tabhost has 1 Tab. whenever I click title tab ,it will add another tab. Look like MS IE Browser. P.S. I use TabHostExtras Library. Best Regards Theera
Erel B4X founder Staff member Licensed User Longtime User May 22, 2012 #2 You can use TabHost.AddTab to add another tab. Upvote 0
Olaan Expert Licensed User Longtime User May 22, 2012 #3 Erel said: You can use TabHost.AddTab to add another tab. Click to expand... Thank you for Answer.But I've used TabHost.AddTab,it doesn't response. Best Regards Theera Last edited: Oct 16, 2012 Upvote 0
Erel said: You can use TabHost.AddTab to add another tab. Click to expand... Thank you for Answer.But I've used TabHost.AddTab,it doesn't response. Best Regards Theera
klaus Expert Licensed User Longtime User May 22, 2012 #4 The code you posted works but propably not as you expect. - You are adding the new Tab in TabHost1_Click event, it's not the best place. - You are loading the same layout in the new tab ? - You don't need a Panel in the tab layouts. In the attached modifyed version the new tab is added with the Add button. Be aware that once you have added a Tab you can't remove it. Best regards. Attachments test1.zip test1.zip 8.7 KB · Views: 304 Upvote 0
The code you posted works but propably not as you expect. - You are adding the new Tab in TabHost1_Click event, it's not the best place. - You are loading the same layout in the new tab ? - You don't need a Panel in the tab layouts. In the attached modifyed version the new tab is added with the Add button. Be aware that once you have added a Tab you can't remove it. Best regards.