I try to read all checked nodes. It works, if I have only root nodes. But now I try to work with root and child nodes. But I only can set and read the childs as TreeItem instead of CheckBoxTreeItem. Perhaps someone can halp ?
B4X:
If bFill = True Then
objTreeQKoerper.SetCheckBoxesMode
If sZW(2) = "P" Then
Dim cti As CheckboxTreeItem
cti.Initialize("ti", sZW(0))
objTreeQKoerper.Root.Children.Add(cti)
Else
Dim ti As TreeItem ' CheckBoxTreeItem not possible
ti.Initialize("ti", sZW(0))
cti.Children.Add(ti)
End If
End If
B4X:
For Each tn As CheckboxTreeItem In objTreeQKoerper.Root.Children
Log(tn.Text)
For i = 0 To tn.Children.Size - 1
Dim tc As TreeItem ' CheckBoxTreeItem not possible
tc = tn.Children.Get(i)
Log(tc.Text)
Next
Next