Sub loadinnerPanel
Dim pnl As Panel
pnl.Initialize("mainpnl")
' pnl.RemoveAllViews
pnl.Color = Colors.Black
pnl.Height = 100%y
pnl.Width = 100%x
Dim N As Int
Dim MemPos As Int
Dim iRed As Int
Dim iGreen As Int
Dim iBlue As Int
Dim yy As Int : yy = 0
Dim xx As Int : xx = 0
For N = 1 To GetrAnz
If GetrWG(N) = Main.WGClick And GetrText(N).Length > 3 Then
Dim itemPnl As Panel
itemPnl.Initialize("itemPnl")
itemPnl.Color = Colors.Black
Dim itempnlWidth As Float = vpw/4.11
Dim itempnlHeight As Float = itempnlWidth/1.3
Dim LayoutVal As LayoutValues
Dim lbl As Label
lbl.Initialize("")
' lbl.TextSize = 15
lbl.Typeface = Typeface.DEFAULT_BOLD
lbl.Gravity = Bit.Or(Gravity.CENTER_VERTICAL, Gravity.CENTER_HORIZONTAL)
iRed = GetrColor(N).SubString2(0,3)
iGreen = GetrColor(N).SubString2(3,6)
iBlue = GetrColor(N).SubString2(6,9)
lbl.Color = Colors.RGB(iRed,iGreen,iBlue)
lbl.Text = GetrText(N)
lbl.TextColor = Colors.White
itemPnl.AddView(lbl,9,9,itempnlWidth,itempnlHeight)
pnl.AddView(itemPnl,xx*itempnlWidth,yy*itempnlHeight,itempnlWidth,itempnlHeight) 'das Bild zur inneren Tafel hinzufügen
xx = xx + 1
If xx = 4 Then yy = yy + 1
If xx = 4 Then xx = 0
itemPnl.Tag = N
End If
Next
End Sub