Hello
I'm having problems accessing the TAG property of a B4XSwitch set in the designer.
I load the layout containing the B4XSwitch and a few other labels onto a panel p
Dim p As Panel
p.Initialize("ClvPanel")
p.Height=60dip
p.LoadLayout("swiftbutton")
Then, i iterate on thepanel in order to retrieve and examine all the views (the TAG helps me differentiate between them)
For Each v As View In p.GetAllViewsRecursive
If v Is Label Then
Log("--->label "&v.Tag)
Dim l As Label = v
'do stuff with the label
Else If v Is Panel Then
Log("--->panel "&v.Tag)
'....?
end if
next
As expected, the b4xSwitch is retrieved as Panel, but v.tag is just the .ToString (guess because the panel is just a container and has to tag); The tag i set in the designer is actually inside
v.mtag.tag
How to programmatically retrieve it?
And once done, how can i access the value property of the switch and manipulate it?
Thanks alot for your time, and stay safe.