Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread Form positioning and shadow
Fri, Dec 16 2011 8:39 AMPermanent Link

Lars Bevik

I have created two forms. When I click on a button on the first form, the second form is positioned exactly on top of the first one. Good, this is how I want it. Except for the shadow that gets darker when the second form is opened. Ok, let's remove the shadow on the second one. Oops! Now the second form is moved down and to the rigth. It looks like the distance is about the same as the shadow.
Lars
Fri, Dec 16 2011 9:50 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Lars,

<< I have created two forms. When I click on a button on the first form, the
second form is positioned exactly on top of the first one. Good, this is how
I want it. Except for the shadow that gets darker when the second form is
opened. Ok, let's remove the shadow on the second one. Oops! Now the second
form is moved down and to the rigth. It looks like the distance is about the
same as the shadow. >>

Do you have the form set to auto-position ?  If so, then this is
as-designed - the shadow is part of the total form size.  And yes, I know
that it's weird to do it that way, but it has to do with the way that the
forms are implemented in the browser.

--
Tim Young
Elevate Software
www.elevatesoft.com
Fri, Dec 16 2011 10:23 AMPermanent Link

Lars Bevik

Tim,
I have set Position (on both forms) to poDesktopCenter and Project > Options > Application I have set Destop Size to Auto-Heigth and Auto-Width. With those settings the forms are perfectly placed on top of each other. If I set ShowShadow to true the second form will be offside. Don't bother, I can live without the shadow. It's cold here in Sweden anyway. I need more sun insteadSmile
Lars
Fri, Dec 16 2011 10:34 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Lars,

<< I have set Position (on both forms) to poDesktopCenter and Project >
Options > Application I have set Destop Size to Auto-Heigth and Auto-Width.
With those settings the forms are perfectly placed on top of each other. If
I set ShowShadow to true the second form will be offside. Don't bother, I
can live without the shadow. It's cold here in Sweden anyway. I need more
sun insteadSmile>>

Smile

I'm going to correct this issue at some point, because a) I don't like it
and never have and b) I made need to correct it anyways when I move some of
the border/shadowing back in the class hierarchy so that panels and other
containers can have similar properties as forms.

--
Tim Young
Elevate Software
www.elevatesoft.com
Mon, Dec 19 2011 9:17 AMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Lars,

I was over-thinking this problem, to some degree.  All I need to do is have
the form positioning code take into account the shadow sizing, and adjust
accordingly.

Duh ! Smile

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