Perhaps there is a method I can't find in the help, but this is the crux of the issue:
[CODE lang="b4x" title="Example" highlight="9"] Dim poText As B4XFloatTextField
Dim poView As B4XView = poPan
poText.Initialize(Me, "poText")
' poPan is the hosting panel for this control and is a plain Panel (e.g. Dim As Panel)
poPan.AddView(poText, 10dip, 10dip, 100dip, 50dip) '<--- types do not match error
poView.AddView(poText, 10dip, 10dip, 100dip, 50dip) '<--- types do not match error
' I need something like the statement below as far as I can tell...
poText.AddToParent(poPan, 10dip, 10dip, 100dip, 50dip)
[/CODE]I know how to work around this, by sizing a hosting panel, loading a layout etc. it would be nice if I didn't have to.