TForm.Position MainFormCenter must be fixed in LCL to avoid out of screen lazarus / 31-LCL ---------------------------------------------------------------------- AlexTP · 2018-11-22 15:00 Main window shows on the bottom. Next window is with MainFormCenter position. Its opened too low, and partly out of screen. Win10. Can you fix position of 2nd window? Picture. ---------------------------------------------------------------------- jamie · 2018-11-22 15:27 So what is the problem?   Looks like it is doing exactly what it should be..?   If you don't want your form to follow the center position of the parent then use another approach maybe?   There are apps that intentionally move a form off the top or bottom of the screen but keep it active, if you are purposing to change this ability then you'll be introducing more issues rather then simply using the provided code to make your app do as you wish.   Like I said, its best to use existing functionality to make your app do as you wish, but it may not be what others want to get pushed to do..  If it was something that had no recourse with provided code in the LCL then I would fully agree to fix it.. P.S.    I think the LCL is overly larded as it is and some of it should go on a diet especially in the TFORM area.    Just my opinion. ---------------------------------------------------------------------- AlexTP · 2018-11-22 17:21 Problem is window partially out of screen. LCL can move it upper ---------------------------------------------------------------------- lucamar · 2018-11-22 17:48 Quote from: Alextp on November 22, 2018, 06:21:27 pmProblem is window partially out of screen. LCL can move it upper And so can you. Bottom line is that when you specify that Position is MainFormCenter the LCL can't guess that you really meant "MainFormCenter except when that would show some of the form off- screen in which case ...", because that may not be what other developers want in their applications. So it does what you said you wanted.