Quote Originally Posted by hwnd View Post
You forgot to declare VerticalBorderHeight.
Actually I just forget to change VerticalBorderWidth to VerticalBorderHeight in variable declaration.
This can happen when you are corceting the spelling mistakes on forum and not in Delphi


Quote Originally Posted by hwnd View Post
But why the bottom part flickers so much? The right side seems ok, but bottom part is flickering.
The form wants to resize but it cant and flickers.
That is strange. I havent encountered any flickering when testing.
Are you maybe handling Windows messages as showed in other examples at the same time? That could be the cause. I can't think of any other reason for flickering.