Magma Expert Licensed User Longtime User Aug 12, 2017 #1 Hi there... just have 1 month using now the TabstripViewPager seems fantastic... but i have one question... how can i replace layout of a tab/page? For exampe: Code: Copy TabStrip1.LoadLayout("1", "first page") TabStrip1.LoadLayout("2", "second page") TabStrip1.LoadLayout("3", "third page") .... ... TabStrip1.LoadLayout("3a", "third page") ' That will add a new tab/page - i just wanna replace "third page" Is that possible ?
Hi there... just have 1 month using now the TabstripViewPager seems fantastic... but i have one question... how can i replace layout of a tab/page? For exampe: Code: Copy TabStrip1.LoadLayout("1", "first page") TabStrip1.LoadLayout("2", "second page") TabStrip1.LoadLayout("3", "third page") .... ... TabStrip1.LoadLayout("3a", "third page") ' That will add a new tab/page - i just wanna replace "third page" Is that possible ?
Erel B4X founder Staff member Licensed User Longtime User Aug 13, 2017 #2 Create a layout with a Panel anchored to all sides. Load this layout as a tabstrip page. Code: Copy TabStrip1.LoadLayout("PanelOnlyLayout", "aaa") 'whenever you like to change the layout: BasePanel.RemoveAllViews BasePanel.LoadLayout(content here) Upvote 0
Create a layout with a Panel anchored to all sides. Load this layout as a tabstrip page. Code: Copy TabStrip1.LoadLayout("PanelOnlyLayout", "aaa") 'whenever you like to change the layout: BasePanel.RemoveAllViews BasePanel.LoadLayout(content here)
Magma Expert Licensed User Longtime User Aug 14, 2017 #3 Like activities... never thought was that simple Upvote 0
Magma Expert Licensed User Longtime User Aug 18, 2017 #4 I have a problem... after some loadlayouts the top and left of basepanel moves down and right... Upvote 0
DonManfred Expert Licensed User Longtime User Aug 18, 2017 #5 Do you expect to get a helpful answer with this LESS of Informations (no Code, no example project which shows the problem)? Upvote 0
Do you expect to get a helpful answer with this LESS of Informations (no Code, no example project which shows the problem)?
Magma Expert Licensed User Longtime User Aug 18, 2017 #6 ..Is just the continue of the thread... but it helps i ll post again the part of code... if not that helps tell to post the zip (thanks for fast answer) Code: Copy TabStrip1.LoadLayout("1", "first page") TabStrip1.LoadLayout("2", "second page") TabStrip1.LoadLayout("3", "third page") .... BasePanel.RemoveAllViews BasePanel.LoadLayout("3a") The "3" and "3a" designer files have inside a pane named basepanel and have anchors hor:LEFT / vertical:TOP and here was the error at the designer .left=10 and .top=10 not zero... so every time was loading layout was going 10 step dip down and right! Upvote 0
..Is just the continue of the thread... but it helps i ll post again the part of code... if not that helps tell to post the zip (thanks for fast answer) Code: Copy TabStrip1.LoadLayout("1", "first page") TabStrip1.LoadLayout("2", "second page") TabStrip1.LoadLayout("3", "third page") .... BasePanel.RemoveAllViews BasePanel.LoadLayout("3a") The "3" and "3a" designer files have inside a pane named basepanel and have anchors hor:LEFT / vertical:TOP and here was the error at the designer .left=10 and .top=10 not zero... so every time was loading layout was going 10 step dip down and right!
Magma Expert Licensed User Longtime User Aug 18, 2017 #7 needed to change at designer the .left and .top of basepanel... to zero Upvote 0