Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Image oddity
Mon, Feb 3 2014 10:04 AMPermanent Link

Matthew Jones

I have an oddity in 1.03 with TImages. I have three TImages on my form. They
contain a 32x32 image, and the width and height are set as such. I also have some
48x48 images.

In FormShow, one of the 32x32 images has Width/Height of 32, but the other two have
48x48 Width/Height now.

Hmm, I've just looked at the form itself. The two "broken" ones have an
InitialWidth of 48 set. The one that works is 32 here. That explains it, and will
fix it. But I can't set this property in the IDE. Why did this happen, and how can
I stop it happening again? Why is one okay, and the other not?

Modifying the wbf manually has fixed this.

Matthew
Tue, Feb 4 2014 8:05 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< I have an oddity in 1.03 with TImages. I have three TImages on my form.
They contain a 32x32 image, and the width and height are set as such. I also
have some 48x48 images.

In FormShow, one of the 32x32 images has Width/Height of 32, but the other
two have 48x48 Width/Height now.

Hmm, I've just looked at the form itself. The two "broken" ones have an
InitialWidth of 48 set. The one that works is 32 here. That explains it, and
will fix it. But I can't set this property in the IDE. Why did this happen,
and how can I stop it happening again? Why is one okay, and the other not?
>>

Did you just see this with 1.03, or was this the case prior to 1.03 ?  The
Initial* properties are used for docking/un-docking controls, and to work
around the built-in Delphi control alignment code (this will go away with
2.0).  They should always get updated when you modify the dimensions in the
object inspector/form designer (apart from modifications done via docking).

Tim Young
Elevate Software
www.elevatesoft.com


Tue, Feb 4 2014 8:11 AMPermanent Link

Matthew Jones

The form was all done in 1.02, and "mis-behaved" in 1.03.

It may not ever be an issue again, but something odd happened.

/Matthew Jones/
Tue, Feb 11 2014 8:53 AMPermanent Link

Matthew Jones

In the 1.03b3 IDE, on a totally new form, I have created a new TImage. I then
loaded the content of the image and set AutoSize to true. Looks nice. Then when I
run it, it is not the right size visually. I checked the form and it had an
InitialWidth and InitialHeight of 105, which fits the actual display size. Looks
like either the IDE needs to change the InitialWidth when it is updated, or the
runtime needs to ignore it. Or the runtime isn't using the "plain" Width/Height.

/Matthew Jones/
Tue, Feb 11 2014 10:12 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Matthew,

<< In the 1.03b3 IDE, on a totally new form, I have created a new TImage. I
then loaded the content of the image and set AutoSize to true. Looks nice.
Then when I run it, it is not the right size visually. I checked the form
and it had an InitialWidth and InitialHeight of 105, which fits the actual
display size. Looks like either the IDE needs to change the InitialWidth
when it is updated, or the runtime needs to ignore it. Or the runtime isn't
using the "plain" Width/Height. >>

I'll check it out.  It's probably a case where AutoSize:=True isn't updating
the Initial* properties properly.

Tim Young
Elevate Software
www.elevatesoft.com
Image