B4J Question CustomView not resizing

rwblinn

Well-Known Member
Licensed User
Longtime User
Hi,

developed a Custom View (CV) ListViewEdit.
It contains the routines
B4X:
Public Sub DesignerCreateView (Base As Pane, Lbl As Label, Props As Map)
to create using the B4J Designer and
B4X:
Public Sub AddToParent(Parent As Pane, Left As Int, Top As Int, Width As Int, Height As Int)
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.

upload_2016-10-20_16-41-22.png
 

Attachments

  • CustomViewListViewEdit.zip
    5.1 KB · Views: 203
Last edited:
Top