Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread TImage
Thu, Aug 27 2015 12:48 PMPermanent Link

Nils Sorensen

Hi

Maybe I'm a litle too tired tonight, but
how do you enable the old strech property of TImage ?

Nils
Thu, Aug 27 2015 12:56 PMPermanent Link

Mark Brooks

Slikware

Avatar

>>Nils Sorensen wrote:
>>Maybe I'm a litle too tired tonight, but
>>how do you enable the old strech property of TImage ?
>>Nils

Not in the office right now, but from memory checkout ContentLayout-> Size or thereabouts?
Thu, Aug 27 2015 1:32 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Nils

<< Maybe I'm a litle too tired tonight, but how do you enable the old strech property of TImage ? >>

It depends upon what kind of stretch you want.  If you want a proportional stretch, then select a ContentLayout.Size setting of csCover.  If you want a basic stretch, then set the ContentLayout.Size property to csSpecified, and then set the ContentLayout.Width and ContentLayout.Hheight so that they equal the Width and Height of the control.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Aug 27 2015 3:14 PMPermanent Link

Nils Sorensen

Tim Young [Elevate Software] wrote:

Nils

<< Maybe I'm a litle too tired tonight, but how do you enable the old strech property of TImage ? >>

It depends upon what kind of stretch you want.  If you want a proportional stretch, then select a ContentLayout.Size setting of csCover.  If you want a basic stretch, then set the ContentLayout.Size property to csSpecified, and then set the ContentLayout.Width and ContentLayout.Hheight so that they equal the Width and Height of the control.

Tim Young
Elevate Software
www.elevatesoft.com


Many thanks to both of you. I got it working OK now. Guess I just made it to comlicated.
Sun, Aug 30 2015 11:20 AMPermanent Link

Uli Becker

Tim,

> If you want a basic stretch, then set the ContentLayout.Size property to csSpecified, and then set the ContentLayout.Width and ContentLayout.Hheight so that they equal the Width and Height of the control.

Would it then be possible to add an additional property
Content.Size.Fill e.g., that stretches the content of an image
regardless of the proportions?

That would save a lot of code, when you create a number of images at
runtime and these are resized later.

Thanks

Uli
Mon, Aug 31 2015 9:26 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< Would it then be possible to add an additional property Content.Size.Fill e.g., that stretches the content of an image regardless of the proportions? >>

Anything is possible, but I'll have to think about this one.  I'm trying to keep the options the same for both the background images and the normal images, in order to avoid confusion/questions, and I don't have control over how the background image stretches occur at runtime.

Tim Young
Elevate Software
www.elevatesoft.com
Image