Recent

Author Topic: TForm.Position:= poDefault problem  (Read 4011 times)

Avishai

  • Hero Member
  • *****
  • Posts: 1021
TForm.Position:= poDefault problem
« on: September 09, 2011, 07:45:46 am »
Does anyone else have a problem when TForm.Position:= poDefault or poDefaultSizeOnly?  If I use these setting, when I run the program the Form becomes much wider and heigher and components that are anchored to the right side stay in the same place.  The original Canvas area is OK, but the "Added" area is black until I resize the From. Then everything seems to be updated and the Canvas and component locations are "Fixed".  I can use any other setting without problem.  If this is a bug I will report it but I want to check with others to see if they have the same problem first or know of a solution.
« Last Edit: September 09, 2011, 10:43:59 am by Avishai »
Lazarus Trunk / fpc 2.6.2 / Win32

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: TForm.Position:= poDefault problem
« Reply #1 on: September 09, 2011, 09:22:57 am »
Ok, if i make new project and set position to poDefault, width 200, height 200, i get form that is normal in that small area, but rest of the big form is black. It became 1200x700 or so in size.
I don't know if that's intended or bug, but at least it should paint itself.

I always use poDesigned or poScreenCenter. poDesigned only if i want to manually move the form on startup, poScreenCenter would mess with that. poDesktopCenter does awkward thing on multimonitor computers i've heard.

 

TinyPortal © 2005-2018