Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Layout
Fri, Aug 14 2015 12:58 PMPermanent Link

Ronald

Hi,

I am having trouble to understand the Consumption property.
Suppose I have a Label1 in my TPanel with Label1.LayOut.Position:=lpLeftCenter. If I set Label1.LayOut.Consumption:=lcRight this means that the NEXT element in my layout occupies the space to the right of Label1?
In other words: Consumption always instructs the next element about its layout?

Greetings,
Ronald  
Fri, Aug 14 2015 1:39 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ronald,

<< I am having trouble to understand the Consumption property.
Suppose I have a Label1 in my TPanel with Label1.LayOut.Position:=lpLeftCenter. If I set Label1.LayOut.Consumption:=lcRight this means that the NEXT element in my layout occupies the space to the right of Label1?
In other words: Consumption always instructs the next element about its layout? >>

Exactly correct.

In 2.01, this concept is extended a bit with the Layout.Overflow property, which will allow the current element to temporarily adjust the *prior* element's consumption/reset properties in order to prevent an element from overflowing the available space in the current layout rectangle.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Aug 14 2015 1:45 PMPermanent Link

squiffy

Telemix Ltd.

Avatar

Tim Young [Elevate Software] wrote:
>>In 2.01, this concept is extended a bit with the Layout.Overflow property, which will allow the current element to >>temporarily adjust the *prior* element's consumption/reset properties in order to prevent an element from >>overflowing the available space in the current layout rectangle.

Which is how you get the responsive effect, yes?
Image