Hi all,
I have a problem with designer script for SetTopAndBottom command (Sample project Attached)
In my layout, there is pnlMain, pnlMain contains 3 panels, pnlTitle, pnlInput & pnlTbl.
pnlTbl contains 1 panel, pnlData.
On each panels, SetTopAndBottom command seem OK, but on pnlData is not OK.
Here is the sample on designer script :
The last command pnlData.SetTopAndBottom(8dip,pnlTbl.Bottom -15dip) is supposed to set pnlData bottom 15dip above pnlTbl bottom, but it was not correct.
Anybody knows what is wrong with those codes?
Thanks in advance.
I have a problem with designer script for SetTopAndBottom command (Sample project Attached)
In my layout, there is pnlMain, pnlMain contains 3 panels, pnlTitle, pnlInput & pnlTbl.
pnlTbl contains 1 panel, pnlData.
On each panels, SetTopAndBottom command seem OK, but on pnlData is not OK.
Here is the sample on designer script :
B4X:
pnlMain.Width = 100%x
pnlMain.Height = 100%y
pnlTitle.Width = pnlMain.Width
pnlTitle.Top = 0
pnlInput.SetLeftAndRight(4dip,pnlMain.Width-4dip)
pnlInput.SetTopAndBottom(pnlTitle.Bottom + 5dip,200dip)
pnlTbl.SetLeftAndRight(4dip,pnlMain.Width-4dip)
pnlTbl.SetTopAndBottom(pnlInput.Bottom + 5dip,pnlMain.Bottom - 5dip)
pnlData.SetLeftAndRight(8dip,pnlTbl.Width-8dip)
pnlData.SetTopAndBottom(8dip,pnlTbl.Bottom -15dip)
'pnlData.Top = 8dip
'pnlData.Height = pnlTbl.Height -15dip
Anybody knows what is wrong with those codes?
Thanks in advance.