I'm using the FullScroll method to scroll my horizontal panel but for some reason it doesn't work correctly. The weird thing is when I put a break on the line and step it, it works right.
here's my code:
Any tips?
here's my code:
B4X:
Sub AddTransaction(ATransaction As TTransaction)
Transactions.Insertat(0,ATransaction)
'resize our inner panel
pnlTransaction.Panel.Width=(Transactions.Size)*pnlOrder.Width
pnlTransaction.Panel.AddView(ATransaction.APanel,pnlOrder.Width*(Transactions.Size-1),0,pnlOrder.Width,pnlOrder.Height)'-Globals.RowHeight)
ATransaction.APanel.Visible=True
'scroll our panel all the way right
pnlTransaction.FullScroll(True) 'put a break here and step then it works
DoEvents '??? still doesn't work
End Sub
Any tips?