Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 14 total
Thread Benefit in 2.02
Tue, Oct 13 2015 12:16 PMPermanent Link

Matthew Jones

The new layout code that takes account of the "widest" item in the
previous column is a good win in 2.02 - instantly solves a problem in
my current project. Thanks!

--

Matthew Jones
Tue, Oct 13 2015 12:21 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< The new layout code that takes account of the "widest" item in the previous column is a good win in 2.02 - instantly solves a problem in my current project. Thanks! >>

Yeah, that should have been in there from the beginning, but I was always trying to ensure that the layout code was solid before I made it overly-complex.  It's going to get really whacky when I start trying to tackle space distribution. Smile

Tim Young
Elevate Software
www.elevatesoft.com
Wed, Oct 14 2015 6:29 AMPermanent Link

Uli Becker

Matthew,

> The new layout code that takes account of the "widest" item in the
> previous column is a good win in 2.02 - instantly solves a problem in
> my current project. Thanks!

Not only a benefit Frown

All layouts like this:

BasicPanel contains an Image (or another Panel) with Layout position set
to TopLeft and Stretch to bottom:

All other controls with a number of "lines" at the right of the Image
are messed up except the first line, because the second line's TopLeft
is now at the bottom of the Image.

So I don't see another way than to create an additional container at the
right side of the image.

Uli
Wed, Oct 14 2015 7:56 AMPermanent Link

Matthew Jones

Uli Becker wrote:

> So I don't see another way than to create an additional container at
> the right side of the image.

How about having the image at the same level as the container, and
consuming nothing? Actually, why have you got the image at all? Sounds
like you are wanting it to act as the background for the panel, but why
not just set the background? I guess I don't understand this enough.

--

Matthew Jones
Wed, Oct 14 2015 8:45 AMPermanent Link

Uli Becker

Matthew,

> How about having the image at the same level as the container, and
> consuming nothing?

Generally yes, in my case no because of a responsive layout. The size of
the image can change and with the "old" layout all labels where arranged
properly.

> Actually, why have you got the image at all? Sounds
> like you are wanting it to act as the background for the panel, but why
> not just set the background? I guess I don't understand this enough.

Because the image is loaded from an URL.

See the attached screenshot.

No big problem though - I added additional panels and it works fine.

Uli





Attachments: Clip25.png
Wed, Oct 14 2015 1:49 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< BasicPanel contains an Image (or another Panel) with Layout position set to TopLeft and Stretch to bottom:

All other controls with a number of "lines" at the right of the Image are messed up except the first line, because the second line's TopLeft is now at the bottom of the Image. >>

I'm not quite sure I understand what you're trying to do here.  What is the Consumption property set to for the image ?

Remember, this change *only* affects how the consumption rectangle is calculated.

Tim Young
Elevate Software
www.elevatesoft.com
Thu, Oct 15 2015 6:12 AMPermanent Link

Uli Becker

Tim,

> I'm not quite sure I understand what you're trying to do here.  What
is the Consumption property set to for the image ?

Sorry about the confusion. This kind of layout is difficult to describe.
Consumption is lcRight

This layout worked with the last build of EWB; with the new build
everything beneath line1 was "gone". That's why I posted that here.

The attached screenshot demonstrates that:

Panel1: EWB 2.01
Panel2: EWB 2.02
Panel3: Setting stretch to none of the TImage and decreasing the height
show the "gone" lines and  how the new consumption works.

(all Controls from "line2" have set a left margin.)

As I already mentioned I use a separate container from now and that
seems to be the cleanest layout.

Uli




Attachments: Clip27.png
Thu, Oct 15 2015 2:53 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Uli,

<< This layout worked with the last build of EWB; with the new build everything beneath line1 was "gone". That's why I posted that here. >>

I think it just worked due to a fluke of the way that the consumption was being handled.

What are the layout orders of the image and the labels ?  What you're showing is indicating that the image is not the *first* in the layout order, but rather is in-between the labels at some point.  If it's the first control in the layout order, and has its consumption set to lcRight, then you won't see what you're seeing, you'll see the same as what you saw in EWB 2.01 and earlier.

Tim Young
Elevate Software
www.elevatesoft.com
Fri, Oct 16 2015 12:23 PMPermanent Link

Uli Becker

Tim,

> What are the layout orders of the image and the labels ?  What you're showing is indicating that the image is not the *first* in the layout order, but rather is in-between the labels at some point.  If it's the first control in the layout order, and has its consumption set to lcRight, then you won't see what you're seeing, you'll see the same as what you saw in EWB 2.01 and earlier.

Layout order of the image is 0, labels 1,2 etc.

Attached a sample project.

The last label in the first "row" has consumption = bottom. IMO after
the breaking change the consumption space is the biggest value of that
"row", that is the TImage. Is that right?

If so, then everything works like expected but just different from the
last version.

Uli





Attachments: Test Consumption.zip
Sun, Oct 18 2015 10:05 AMPermanent Link

Matthew Jones

Uli Becker wrote:

> Attached a sample project.

Is it possible to un-attach this from the message please? My iPhone's
NNTP application gets stuck trying to read this message, and I can't
see a way to tell it to ignore it. It's handy being able to read the
newsgroup out of the office.

--

Matthew Jones
Page 1 of 2Next Page
Jump to Page:  1 2
Image