Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Panel height bug
Wed, Apr 18 2012 11:16 AMPermanent Link

Robert Devine

Hi Tim

I'm using a panel without a caption as a status bar. If I set the height
to 25 in the designer it tries to set the panel height to a negative
value when the app runs in the IDE. I'm guessing it's something to do
with when the caption height is subtracted. I'm now setting height at
runtime so it's not a problem but I can see it causing some
headscratching...

Cheers, Bob
Wed, Apr 18 2012 12:05 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bob,

<< I'm using a panel without a caption as a status bar. If I set the height
to 25 in the designer it tries to set the panel height to a negative value
when the app runs in the IDE. I'm guessing it's something to do with when
the caption height is subtracted. I'm now setting height at runtime so it's
not a problem but I can see it causing some headscratching... >>

Thanks, I'll make sure that this is fixed.

--
Tim Young
Elevate Software
www.elevatesoft.com
Wed, Apr 18 2012 11:15 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bob,

<< I'm using a panel without a caption as a status bar. If I set the height
to 25 in the designer it tries to set the panel height to a negative value
when the app runs in the IDE. I'm guessing it's something to do with when
the caption height is subtracted. I'm now setting height at runtime so it's
not a problem but I can see it causing some headscratching... >>

Do you simply have the ShowCaption property set to False ?  I'm doing that,
and the panel height is being set properly (no negative numbers).

--
Tim Young
Elevate Software
www.elevatesoft.com
Thu, Apr 19 2012 6:16 AMPermanent Link

Robert Devine

Hi Tim

Yes, dropped a panel on my main form, set ShowCaption to false and
height = 25 and the "invalid argument" error appears when you hit run.
Set height = 30 and it's ok, 29 also errors. This is default theme.

For glossy blue the critical value is 45, which is the sum of the
caption and bottom border heights.

Cheers, Bob


On 19/04/2012 04:15, Tim Young [Elevate Software] wrote:
> Bob,
>
> << I'm using a panel without a caption as a status bar. If I set the
> height to 25 in the designer it tries to set the panel height to a
> negative value when the app runs in the IDE. I'm guessing it's something
> to do with when the caption height is subtracted. I'm now setting height
> at runtime so it's not a problem but I can see it causing some
> headscratching... >>
>
> Do you simply have the ShowCaption property set to False ? I'm doing
> that, and the panel height is being set properly (no negative numbers).
>
Thu, Apr 19 2012 8:28 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Bob,

<< Yes, dropped a panel on my main form, set ShowCaption to false and height
= 25 and the "invalid argument" error appears when you hit run. Set height =
30 and it's ok, 29 also errors. This is default theme. >>

Got it finally, thanks.

--
Tim Young
Elevate Software
www.elevatesoft.com
Image