When you create a custom control with the new version of B4J, you may need to resize it from the application eg, you remove a component from it.
The variable 'Base' is only available in the sub DesignerCreateView.
In that routine, if you take a copy of it, you can resize the control whenever you want.
The variable 'Base' is only available in the sub DesignerCreateView.
In that routine, if you take a copy of it, you can resize the control whenever you want.
B4X:
'class globals
....
Private savedBase as Pane
....
Sub DesignerCreateView( ....
...
savedBase = Base
.....
End Sub
...
savedBase.PrefHeight = ... 'etc
...