L llama Member Licensed User Longtime User Mar 10, 2023 #1 Hi everyone and Alex creator of [B4X] AS_TabMenuAdvancedI am testing to see if this will work in a project I am a little stuck on loading a layout once you press a tab, or does this have to be a panel? I have been using TabStrip Viewer and you can click on a tab and load a layout in a simple way using the code below. Code: T abStrip1.LoadLayout("Page1", "PAGE 1") Question is how do I do this in AS_TabMenuAdvanced? Excuse my lack of knowledge I like the AS_TabMenuAdvanced so would like to use it, I have the following that checks the tab clicked just need to load a layout or do we have to create dynamic panels to hide and show.. Below how would I load a layout for each tab? Code: Private Sub AS_TabMenuAdvanced_Design4_TabClick (Index As Int) Log(Index) If Index == 0 Then 'code To load layout End If End Sub Any help would be appreciated - Thank you in advanced
Hi everyone and Alex creator of [B4X] AS_TabMenuAdvancedI am testing to see if this will work in a project I am a little stuck on loading a layout once you press a tab, or does this have to be a panel? I have been using TabStrip Viewer and you can click on a tab and load a layout in a simple way using the code below. Code: T abStrip1.LoadLayout("Page1", "PAGE 1") Question is how do I do this in AS_TabMenuAdvanced? Excuse my lack of knowledge I like the AS_TabMenuAdvanced so would like to use it, I have the following that checks the tab clicked just need to load a layout or do we have to create dynamic panels to hide and show.. Below how would I load a layout for each tab? Code: Private Sub AS_TabMenuAdvanced_Design4_TabClick (Index As Int) Log(Index) If Index == 0 Then 'code To load layout End If End Sub Any help would be appreciated - Thank you in advanced
Alexander Stolte Expert Licensed User Longtime User Mar 10, 2023 #2 llama said: I have been using TabStrip Viewer and you can click on a tab and load a layout in a simple way using the code below. Click to expand... llama said: Question is how do I do this in AS_TabMenuAdvanced? Click to expand... The AS_TabMenuAdvanced is not a TabStrip, it's just a Tab Menu. If you want to show a layout if you click on a tab, then you can do it with panels or with the AS_ViewPager. But in both variants, the panel/viewpager must be placed above the TabMenu, or below it, depending on where you want the menu. Upvote 0
llama said: I have been using TabStrip Viewer and you can click on a tab and load a layout in a simple way using the code below. Click to expand... llama said: Question is how do I do this in AS_TabMenuAdvanced? Click to expand... The AS_TabMenuAdvanced is not a TabStrip, it's just a Tab Menu. If you want to show a layout if you click on a tab, then you can do it with panels or with the AS_ViewPager. But in both variants, the panel/viewpager must be placed above the TabMenu, or below it, depending on where you want the menu.
L llama Member Licensed User Longtime User Mar 10, 2023 #3 Alex thank you very much for your answer fully understand now. Upvote 0