Hi,
I've got a simple question. I run this sub several times, and I want to get if there's already a panel at the location of the new panel (to avoid adding a new panel).
My panels have the same left and width.
Thanks in advance !
I've got a simple question. I run this sub several times, and I want to get if there's already a panel at the location of the new panel (to avoid adding a new panel).
B4X:
Dim Left as int = 25dip
Dim Width as int = 15dip
Sub AddPanel(top as int, height as int)
Dim p as panel
'Check here if a panel in Activity is already on the location
Activity.AddView(p,Left,top,Width,height)
End Sub
My panels have the same left and width.
Thanks in advance !