@Erel, I will investigate some more..
In the mean time, from this section for adding a label to a pane, what possibly could be wrong ?
Private Sub create_record_panel (pp As Pane,prefix As String)
Dim ll As Label
ll.Initialize("lbl")
ll.Text = "CH "&prefix.SubString(1)
pp.AddNode(ll,1dip,1dip,-1,-1)
Log("panel "&prefix&" added")
End Sub
If you see at "correct process by F8.png", you can see logs "Panel R22 added" ... to.... "Panel R32 added", which is exactly as I wanted.
But if you see at "error when running.png", you can see log that "Panel R01 added" was a proof of succesful that above code was executed once.
Executing the next one, will make "label cannot be casted to pane" error exception.
This is something that i couldn't understand. I know the difference between label and pane.
If I make something like this :
dim xx as label
xx.initialize("")
dim yy as pane = xx
then I understand that "label cannot be casted to pane" exception is happened.
But from my code, I want to add a label to a pane, by "pane.AddNode()" function, so .. definitely not casting label to pane, right ?
Enlightened me please.