Hi
following is a footer. It has a grid as following
I put two button into the cell(1,5) cell(1,6) of grid of footer. Why does its showing position incorrectly !?
following is a footer. It has a grid as following
B4X:
Sub BuildFooterFixed(page As ABMPage,PaddingBotton As Int,theme As String)
page.isFixedFooter= True
' because we have a fixed footer at the bottom, we have to adjust the padding of the body in pixels
page.PaddingBottom = PaddingBotton
page.Footer.AddRowsM(1, True,4,4, "").AddCellsOSMP(6,0,0,0,2,2,2,0,0,0,0, "")
page.Footer.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
'
page.Footer.UseTheme(theme)
End Sub
I put two button into the cell(1,5) cell(1,6) of grid of footer. Why does its showing position incorrectly !?
B4X:
Shared.BuildFooterFixed(page,200,"")
Dim btn2 As ABMButton
btn2.InitializeRaised(page, "svgsave", "mdi-navigation-cancel", "", "存檔", "darkgreen")
page.Footer.Cell(1,6).AddComponent(btn2)
Dim btn3 As ABMButton
btn3.InitializeRaised(page, "svgdelete", "mdi-content-add-circle", "", "刪除", "darkgreen")
page.Footer.Cell(1,5).AddComponent(btn3)