Johan Hormaza Well-Known Member Licensed User Longtime User Nov 9, 2019 #1 How can I add ABMCustomComponent in an ABMContainer? To be more exact, I need to add this component in a container https://alwaysbusycorner.com/2016/09/18/b4j-creating-you-own-components-in-abmaterial/ Thank you! Johan
How can I add ABMCustomComponent in an ABMContainer? To be more exact, I need to add this component in a container https://alwaysbusycorner.com/2016/09/18/b4j-creating-you-own-components-in-abmaterial/ Thank you! Johan
Cableguy Expert Licensed User Longtime User Nov 9, 2019 #2 When you dim your component, you get a ref to it, like; B4X: Dim custGauge As CustomGauge Then you just add it like any other component: B4X: Page.cell(x,y).addcomponent(custgauge) Upvote 0
When you dim your component, you get a ref to it, like; B4X: Dim custGauge As CustomGauge Then you just add it like any other component: B4X: Page.cell(x,y).addcomponent(custgauge)
Johan Hormaza Well-Known Member Licensed User Longtime User Nov 9, 2019 #3 Cableguy said: Page.cell(x,y).addcomponent(custgauge) Click to expand... Yes, but for a Page it works, but in an ABMContainer it doesn't work. Thank you! @Cableguy Upvote 0
Cableguy said: Page.cell(x,y).addcomponent(custgauge) Click to expand... Yes, but for a Page it works, but in an ABMContainer it doesn't work. Thank you! @Cableguy
Cableguy Expert Licensed User Longtime User Nov 9, 2019 #4 Can it be that, due to the reduced size of the target container, the component can't be rendered? Upvote 0
alwaysbusy Expert Licensed User Longtime User Nov 9, 2019 #5 I'm not at my PC, but it has something to do with the Id. It has been mentioned at the forum how to fix Upvote 0
I'm not at my PC, but it has something to do with the Id. It has been mentioned at the forum how to fix
Cableguy Expert Licensed User Longtime User Nov 9, 2019 #6 alwaysbusy said: I'm not at my PC, but it has something to do with the Id. It has been mentioned at the forum how to fix Click to expand... I think it's this one... https://www.b4x.com/android/forum/threads/71076 Upvote 0
alwaysbusy said: I'm not at my PC, but it has something to do with the Id. It has been mentioned at the forum how to fix Click to expand... I think it's this one... https://www.b4x.com/android/forum/threads/71076
Johan Hormaza Well-Known Member Licensed User Longtime User Nov 9, 2019 #7 Cableguy said: I think it's this one... https://www.b4x.com/android/forum/threads/71076 Click to expand... As my dear friend told you, the component works perfectly on one page, but in an ABMContainer it does not show the component. Cableguy said: Can it be that, due to the reduced size of the target container, the component can't be rendered? Click to expand... No, it cannot be processed. No doubt this could be the problem. Upvote 0
Cableguy said: I think it's this one... https://www.b4x.com/android/forum/threads/71076 Click to expand... As my dear friend told you, the component works perfectly on one page, but in an ABMContainer it does not show the component. Cableguy said: Can it be that, due to the reduced size of the target container, the component can't be rendered? Click to expand... No, it cannot be processed. No doubt this could be the problem.