Wow, this is quite different from the first post
!
Sub CreatePanel(Title AsString) As Panel
Dim pnl AsPanel
pnl.Initialize("")
Log(pnl.LoadLayout(Title.ToLowerCase))
Return pnl
End Sub
Log(pnl.LoadLayout(Title.ToLowerCase)) what is this ?
Do you load the layout or don't you !?
If no, where are they loaded ?
Then, once again I ask the same question, how are these layout files defined ?
I hope that all the view of these layouts are on a Panel.
So you might define an array, layoutPanelHeight(), with the Height of these Panels
layoutPanelHeight() = layoutPanel.Height and set sv.Panel.Height = layoutPanelHeight(i).