Hi,
developed a Custom View (CV) ListViewEdit.
It contains the routines
to create using the B4J Designer and
to create the CV via code.
In an example created a CVs ListViewEdit1 using the Designer and ListViewEdit2 As ListViewEdit using code.
Issue
Resizing the CV code created using button Resize List 2, is not working, whilst created with the Designer works fine via button Resize List 1.
It seems that the sub Public Base_Resize in the CV class is not called when the CV is created via code.
Any hints appreciated.
See attached example code and the draft CV.
developed a Custom View (CV) ListViewEdit.
It contains the routines
B4X:
Public Sub DesignerCreateView (Base As Pane, Lbl As Label, Props As Map)
B4X:
Public Sub AddToParent(Parent As Pane, Left As Int, Top As Int, Width As Int, Height As Int)
In an example created a CVs ListViewEdit1 using the Designer and ListViewEdit2 As ListViewEdit using code.
Issue
Resizing the CV code created using button Resize List 2, is not working, whilst created with the Designer works fine via button Resize List 1.
It seems that the sub Public Base_Resize in the CV class is not called when the CV is created via code.
Any hints appreciated.
See attached example code and the draft CV.
Attachments
Last edited: