<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">Hi All,</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">Please take a look at the attached screenshot. ScrollBar1 is set to align bottom, and PaintBox1 is set to align client.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">The problem is I expect the height of PaintBox1 to be the ClientHeight of Form1 minus the hight of ScrollBar1.  In fact, the scollbar does not push the paintbox upward, but looks like floating over it.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">Can I make the scrollbar align below the paintbox instead of floating on top of it?</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">btw, I am using Lazarus 1.2.6 on Ubuntu 14.10 64bit.</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">Thanks!</div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace,monospace;font-size:large">Xiangrong</div></div>