alwaysbusy Expert Licensed User Longtime User Dec 18, 2018 #1 First time B4J CustomView builder, so bare with me. I'm trying to make a make a custom component (MyComp) in Java that should have very similar behavior like a normal B4J pane. Just like a pane can change its parent to another pane, I would like MyComp to be able to change its parent to another MyComp. My definition looks like this, but still I cannot change the parent from Main to another MyComp: Code: public class MyComp extends PaneWrapper<Pane> implements DesignerCustomView { ... } Probably pretty basic stuff...
First time B4J CustomView builder, so bare with me. I'm trying to make a make a custom component (MyComp) in Java that should have very similar behavior like a normal B4J pane. Just like a pane can change its parent to another pane, I would like MyComp to be able to change its parent to another MyComp. My definition looks like this, but still I cannot change the parent from Main to another MyComp: Code: public class MyComp extends PaneWrapper<Pane> implements DesignerCustomView { ... } Probably pretty basic stuff...
Erel B4X founder Staff member Licensed User Longtime User Dec 18, 2018 #2 It is currently not possible. Custom views cannot be parents of other views (in the designer). Upvote 0
alwaysbusy Expert Licensed User Longtime User Dec 18, 2018 #3 Erel said: Custom views cannot be parents of other views (in the designer). Click to expand... Ok, so it is not me... Upvote 0
Erel said: Custom views cannot be parents of other views (in the designer). Click to expand... Ok, so it is not me...