Hi,
I am facing the same problem but struggling with the solution of the following thread:
The problematic line is:
Do I have to replace "PanelFromLayout" with the real panel name, which is generated from designer ?
I tried to do so, but then it will show error "Array expected." which confuses me - when generating the new class module, there is no parameter for the Initialize method at all...
I then removed the parameter completely and just called tab1.Initialize. This lets the code compile successfully and the Tab UI looks like it should be, but when I e.g. place a button in my layout (using Designer) and then "Generate Click" event, this Click event is always placed in "Target": B4XMainPage.
Because I want the code to be separated for each Tab Page, I moved the Button declaration and Click Event into the corresponding class module, but then the Click event is never executed when I tap the button...
I am facing the same problem but struggling with the solution of the following thread:
[B4X] How do I load separate code with each TabStripView Page?
So i've configured my app already and then later on decided I wanted to use TabStripViewPager, The issue i'm having is i've all my code on separate pages for separate layouts, and i'm not quite sure how to load in that code/module with each TabStrip layout. For example, with the TabStrip it...
www.b4x.com
The problematic line is:
B4X:
tab1.Initialize(PanelFromLayout)
Do I have to replace "PanelFromLayout" with the real panel name, which is generated from designer ?
I tried to do so, but then it will show error "Array expected." which confuses me - when generating the new class module, there is no parameter for the Initialize method at all...
I then removed the parameter completely and just called tab1.Initialize. This lets the code compile successfully and the Tab UI looks like it should be, but when I e.g. place a button in my layout (using Designer) and then "Generate Click" event, this Click event is always placed in "Target": B4XMainPage.
Because I want the code to be separated for each Tab Page, I moved the Button declaration and Click Event into the corresponding class module, but then the Click event is never executed when I tap the button...