Sub ListTopLevel(id As String, icon As String, Title As String,strwebcolour1 As String,txtTooltip1 As String,strwebcolour2 As String,txtTooltip2 As String) As ABMContainer
Dim itemcont As ABMContainer
itemcont.Initialize(page, id,"")
itemcont.AddRowsM(1,False,0,0, "").AddCellsOSMP(1,0,0,0,8,8,8,0,0,15,0,"").AddCellsOSMP(1,0,0,0,3,3,3,0,0,0,0,"").AddCellsOSMP(1,0,0,0,1,1,1,0,0,15,0,"")
itemcont.BuildGrid '//IMPORTANT once you loaded the complete grid And before you start adding components
Dim dotcont As ABMContainer
dotcont.Initialize(page, id & "dot","")
dotcont.AddRowsM(1,False,0,0, "").AddCellsOSMP(2,0,0,0,6,6,6,20,0,0,0,"")
dotcont.BuildGrid
itemcont.Cell(1,3).AddComponent(dotcont)
If strwebcolour1<>"None" Then
If strwebcolour2="None" Then
Dim lblspacedot As ABMLabel
lblspacedot.Initialize(page,"spcdot"," ",ABM.SIZE_H6,True,"")
dotcont.Cell(1,1).AddComponent(lblspacedot)
End If
Dim btnstat1 As ABMButton
btnstat1.InitializeFloating(page,"stat1" & id,"",strwebcolour1)
btnstat1.SetTooltip(txtTooltip1,ABM.TOOLTIP_LEFT,1000)
btnstat1.Size=ABM.SIZE_SMALL
dotcont.Cell(1,2).AddComponent(btnstat1)
End If
If strwebcolour2<>"None" Then
Dim btnstat2 As ABMButton
btnstat2.InitializeFloating(page,"stat2" & id,"",strwebcolour2)
btnstat2.SetTooltip(txtTooltip2,ABM.TOOLTIP_LEFT,1000)
btnstat2.Size=ABM.SIZE_SMALL
dotcont.Cell(1,1).AddComponent(btnstat2)
End If
Dim lbl As ABMLabel
If icon <> "" Then
lbl.Initialize(page, id, Title, ABM.SIZE_H6, True, "header")
Else
lbl.Initialize(page, id, Title, ABM.SIZE_H6, True, "")
End If
lbl.VerticalAlign = True
lbl.IconName = icon
itemcont.Cell(1,1).AddComponent(lbl)
Dim lblspacemid As ABMLabel
lblspacemid.Initialize(page,"spcmid"," ",ABM.SIZE_H6,True,"")
itemcont.Cell(1,2).AddComponent(lblspacemid)
Return itemcont
End Sub