The best way to look at a ABMContainer component is like it is a mini ABMPage helper. It has less options but the flow is almost the same. You can add Rows, Cells and other components.
ABMContainers are mosly used to further drill down a cell defined in the page. With an ABMContainer control, you get again a grid of 12 cells so you can do exactly as it was a page.
Lets show an example. We have a page with a row split into two columns of each 6 cells. In the left cell we've added a container with the grid example from the ABMPage chapter.
12 Cells
Our standard grid has 12 cells. No matter the size of the browser, each of these cells will always have an equal width.
1
2
3
4
5
6
7
8
9
10
11
12
To get a feel of how the grid is used ...
// create the container Dim cont1 As ABMContainer cont1.Initialize(page, "cont1", "") cont1.AddRows(1,True, "").AddCells12(1,"") cont1.AddRowsM(1,True,0,0, "").AddCellsOS(12,0,0,0,1,1,1,"") cont1.AddRows(1,True, "").AddCells12(1,"") cont1.BuildGrid // IMPORTANT // add sub header cont1.Cell(1,1).AddComponent(ABMShared.BuildSubHeader(page, "shdr1", "12 Cells")) // add paragraph cont1.Cell(1,1).AddComponent(ABMShared.BuildParagraph(page, "par2","Our standard grid has 12 cells. No matter the size of the browser, each of these cells will always have an equal width.")) // add 12 cells For i=1 To 12 cont1.Cell(2,i).UseTheme("cellLB") Dim lblGrid As ABMLabel lblGrid.Initialize(page, "Rgrid2C" & i & "Label", "" & i, ABM.SIZE_H6, True, "lblGrid") cont1.Cell(2,i).AddComponent(lblGrid) Next // add paragraph cont1.Cell(3,1).AddComponent(ABMShared.BuildParagraph(page, "par3", "To get a feel of how the grid is used ...")) page.Cell(2,1).AddComponent(cont1)
As you can see, this code is almost exactly the same as the beginning of the code in the ABMPage chapter, except we changed page.Add... to cont1.Add... and added the components accordingly.
This is a very powerful component and if you take your time to think about how the grid of your page must look like, a real time saver.
For further information on how the container works, check out the ABMPage and the Grids chapter (but I'm sure you know that one by heart by now).