B4X:
If Common.PlayerId5 = 0 AND Common.PlayerId6 = 0 AND Common.PlayerId7 = 0 AND Common.PlayerId8 = 0 Then
scrollStarts.Panel.Height = scrollStarts.Height ' Set to not scroll for extra players.
Else
scrollStarts.Panel.Height = scrollStarts.Height * 2 ' Set to scroll for extra players.
End If
I simply want to adjust the scrolling area depending on the number of "players" to be shown.
What I have found is that once the Panel.Height has been set that it does not update it a second time UNLESS you move to another form or open a new panel or something similar, than at that point it will redraw once called up again.
Tried all sorts of things including :-
doevents
invalidate
changing color parameter
changing panel.Width
None of the above made any difference.
Any ideas?
Last edited: