Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi's TFrames not keeping their size when reloading a project?

I have a project with a lot of frames, and when I reload my project, they are resized to a width and height of 443x270, or thereabout.

I do reside the frames at runtime, but I wish they would remain as I create them at design time.

I use the non-embedded, classic undocked view. Anyone has any idea on how to have the frames keep their size between programming sessions?

Thanks!

like image 360
Eric Fortier Avatar asked Oct 16 '09 20:10

Eric Fortier


1 Answers

I believe the secret here is to not set your frame alignment of your source frame at design time. It should be alNone. Once you PLACE the frame then adjust it to alClient (or do it in code if your adding fames dynamically)

like image 196
skamradt Avatar answered Nov 16 '22 01:11

skamradt