Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread TForm and AutoSize
Fri, Jul 21 2017 7:08 AMPermanent Link

Uli Becker

There is no published property "AutoSize" for TForm, but I can set

   MyForm.AutoSize.Height := true;

at runtime.

Doing the form resizes to 0.

I guess the autosize functionality hasn't been completed yet, has it?
Would be great to have it though!

Thanks Uli
Fri, Jul 21 2017 10:18 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< There is no published property "AutoSize" for TForm, but I can set

   MyForm.AutoSize.Height := true;

at runtime.

Doing the form resizes to 0. >>

Is there anything on the form ?  If so, then that is why it's "empty" in terms of auto-sizing.

I'm not entirely sure why I didn't enabled auto-sizing for the forms, but I'm pretty sure that it has to do with the scrollbar usage and the fact that I didn't test it completely with the scrollbars yet.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Jul 21 2017 1:33 PMPermanent Link

Uli Becker

Tim,

> Is there anything on the form ?  If so, then that is why it's "empty" in terms of auto-sizing.

Yes, sure. I put a TBasicPanel on it with Layout.Position = lpTopLeft
and Layout.Consumption = lcBottom.

> I'm not entirely sure why I didn't enabled auto-sizing for the forms, but I'm pretty sure that it has to do with the scrollbar usage and the fact that I didn't test it completely with the scrollbars yet.

OK, I see. As I said: that would be a big timesaver and save a lot of
nested calculations.

Thanks Uli
Mon, Jul 24 2017 10:54 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< Yes, sure. I put a TBasicPanel on it with Layout.Position = lpTopLeft and Layout.Consumption = lcBottom. >>

Yeah, that's why it never happened - the form control interfaces have to change a bit to accommodate the nested auto-sizing, and those changes haven't been made yet.  I'll see if I can get to them in 2.07 (they'll be a breaking change, of course).

Tim Young
Elevate Software
www.elevatesoft.com
Image