Hi, I hope it is simple. I have the following code:
The result is, the button msbtn1/Login is on the right side and the msbtn2/Password is in the middle of this dialog.
But I want the msbtn2/Password on the left side. How can I change the align of the content of Cell( 1,1 ) to the left?
I tried to do this with: theme.Cell("CellLeft").Align = ABM.CELL_ALIGN_LEFT
But this changed noting!
Thanks.
B4X:
' create the grid for the footer
' we add a row without the default 20px padding so we need to use AddRowsM(). If we do not use this method, a scrollbar will appear to the sheet.
myModal.Footer.AddRowsM( 1, True, 0, 0, "" ).AddCellsOS( 2, 0, 0, 0, 6, 6, 6, "" )
myModal.Footer.BuildGrid 'IMPORTANT once you loaded the complete grid AND before you start adding components
' create the password button for the footer
Dim msbtn2 As ABMButton
msbtn2.InitializeFlat(AppPage, "msbtn2", "", "", "Password", "transparent")
myModal.Footer.Cell(1,1).AddComponent(msbtn2)
' create the login button for the footer
Dim msbtn1 As ABMButton
msbtn1.InitializeFlat(AppPage, "msbtn1", "", "", "Login", "transparent")
myModal.Footer.Cell(1,2).AddComponent(msbtn1)
The result is, the button msbtn1/Login is on the right side and the msbtn2/Password is in the middle of this dialog.
But I want the msbtn2/Password on the left side. How can I change the align of the content of Cell( 1,1 ) to the left?
I tried to do this with: theme.Cell("CellLeft").Align = ABM.CELL_ALIGN_LEFT
But this changed noting!
Thanks.