Hi,
I have a polymorph classes for creating different kind of context for each panel type.
I have to create Panel1 as Panel as it is called in my Layout in Designer, and I send this panel to one of Polymorph classes to draw context , labels, pictures, rotary controlss etc ....
Everyting works fine so I got an idea to make it more cool.
I would like to keep all my polymorph panels in the List.
So I have Created a class
So in main program I would like to draw it
My problem is I want to create my SUPpanel class with reference to existing Panel in Layout e.g. "Panel1"
Is there any way to achieve it ?
San
I have a polymorph classes for creating different kind of context for each panel type.
I have to create Panel1 as Panel as it is called in my Layout in Designer, and I send this panel to one of Polymorph classes to draw context , labels, pictures, rotary controlss etc ....
Everyting works fine so I got an idea to make it more cool.
I would like to keep all my polymorph panels in the List.
So I have Created a class
B4X:
Public Sub Initialize ( pName As String)
pPanel.Initialize(Name)
pPanel.Tag = Name
Main.PANELS.Add(Me)
End Sub
So in main program I would like to draw it
B4X:
Sub DrawAll
For i = 0 To PANELS.Size - 1
Log(PANELS.Get(i))
CallSub2(PANELS.Get(i), "Draw", i)
Next
Activity.Invalidate
End Sub
My problem is I want to create my SUPpanel class with reference to existing Panel in Layout e.g. "Panel1"
Is there any way to achieve it ?
San