Forum > LCL

TForm.Position:= poDefault problem

(1/1)

Avishai:
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.

User137:
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.

Navigation

[0] Message Index

Go to full version