Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Another layout question
Wed, Jul 6 2016 4:02 PMPermanent Link

Richard Mace

I have an Image in the top right of a TScrollPanel and a label in top left, with Autosize and Wordwrap set to true and stretch set to BottomRight so that it's right side is against the Image.

All is well, and the label nicely re-sizes as the browser is re-sized, however, I am trying to get the label to "overflow" under the Image, but only when the browser window is less than a certain width e.g. being viewed on a Mobile.

Any pointers please?

Thanks in advance.

Richard
www.rocksoftware.co.uk
Thu, Jul 7 2016 4:25 AMPermanent Link

Matthew Jones

Richard wrote:

> I have an Image in the top right of a TScrollPanel and a label in top
> left, with Autosize and Wordwrap set to true and stretch set to
> BottomRight so that it's right side is against the Image.
>
> All is well, and the label nicely re-sizes as the browser is
> re-sized, however, I am trying to get the label to "overflow" under
> the Image, but only when the browser window is less than a certain
> width e.g. being viewed on a Mobile.

Not sure exactly what you are wanting, but I think I'd use the OnSize
event to control this. If the width is less than whatever makes sense,
or you are on mobile, change the consumption of the image from none to
bottom. I assume the image is in layout order 0 (before the label).
This way the image either sits on top of the label, or pushes it down.


--

Matthew Jones
Thu, Jul 7 2016 8:06 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Richard,

<< All is well, and the label nicely re-sizes as the browser is re-sized, however, I am trying to get the label to "overflow" under the Image, but only when the browser window is less than a certain width e.g. being viewed on a Mobile. >>

If you set a minimum width constraint on the label, it should do what you want.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Jul 7 2016 9:00 AMPermanent Link

Richard Mace

Tim Young [Elevate Software] wrote:

>> If you set a minimum width constraint on the label, it should do what you want.

Ah, yes, that makes sense. I have tried that, and it's still not working, so I am re-checking all of my other layout settings to see what's stopping it from happening.

Richard
Image