Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Component suggestion: TElasticFlowPanel
Thu, Oct 22 2015 12:07 PMPermanent Link

PA

This would be a panel which always automatically adapts its size to the combined size of its contained objects (except when its Stretch property is not set to None) and the contained objects are always automatically aligned in a grid.

What do you think?
Thu, Oct 22 2015 2:39 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

PA,

<< This would be a panel which always automatically adapts its size to the combined size of its contained objects (except when its Stretch property is not set to None) and the contained objects are always automatically aligned in a grid. >>

Are you talking about a panel with overflow capability for the children ?  If so, then that's a problem because the overflow relies on the parent panel *not* being auto-sized.

If you want to play with this, there is container auto-sizing in 2.02, but it's not enabled:

WebCtnrs:

TBasicPanel class:

//       Experimental !!!!!!
//         property AutoSize;  <<< Un-comment this and rebuild the component library

You'll see that if you try to do a flow layout that the auto-sizing of the parent container panel will "fight" with the child controls in terms of trying to determine who is doing what.

Tim Young
Elevate Software
www.elevatesoft.com
Image