Hi Erel,
In the attached test ptogram there are on top of the form a pane with two buttons.
When moving from left to right or from roght to left the width of pneLabels.
The values of pneWidth are:
440 = pneLabels.Width
439 / 442 = btnRight.Left - btnLeft.Width)
But both values should be the same!
This program is the demo program for the question HERE.
Using this, TotalWidth = pneLabels.Width, the program doesn't work correctly.
Using this, TotalWidth = btnRight.Left - btnLeft.Width, it works as expected!
In the attached test ptogram there are on top of the form a pane with two buttons.
When moving from left to right or from roght to left the width of pneLabels.
The values of pneWidth are:
440 = pneLabels.Width
439 / 442 = btnRight.Left - btnLeft.Width)
But both values should be the same!
This program is the demo program for the question HERE.
B4X:
' TotalWidth = pneLabels.Width ' this doesn' work correctly
TotalWidth = btnRight.Left - btnLeft.Width
Using this, TotalWidth = btnRight.Left - btnLeft.Width, it works as expected!