Hi all,
I have a primitive question which makes me stupid:
In a panel (pnlInput) I have labels, checkboxes and buttons. With GetAllViewsRecursive I want to handle all views. But the Else command (***) is never processed. It seems all views are labels but they aren't.
Any idea what is wrong?
I have a primitive question which makes me stupid:
In a panel (pnlInput) I have labels, checkboxes and buttons. With GetAllViewsRecursive I want to handle all views. But the Else command (***) is never processed. It seems all views are labels but they aren't.
B4X:
For Each v As View In pnlInput.GetAllViewsRecursive
If (v Is Label) Then
common1.ScaleText(v)
Else ' ***
If v Is CheckBox Then
v.Left = PanelWidth - 1.5*v.Width
Else
If v Is Button Then
v.Width = PanelWidth - 6%x
v.Left = 3%x
End If
End If
End If
Next
Any idea what is wrong?