Problem description:

I have 3 windows(Forms). 1st form is on the top of the screen - like Lazarus main window. I want to show two other windows below the main window, and closely to each other.

So I wrote:

SecondForm.Left  :=1;
SecondForm.Top :=MainForm.Top + MainForm.Height;
ThirdForm.Top    :=MainForm.Top + MainForm.Height;
ThirdForm.Left    :=SecondForm.Left + SecondForm.Width;


This code works well in Delphi. But in Lazarus I see that SecondForm and ThirdForm IS NOT placed below the MainForm - they are ON IT. So the .Top of 3rd and 2nd windows are not calculated correctly. It is smaller than expected and the difference is looking like a height of main window TitleBar.

I try to find some information about this in Wiki and also in other Lazarus documentation, examples, but had found nothing.

Thank you for your help.

Regards, Alexey.

Reply via email to