This is one of those annoying little things that I've never found the answer
too.....

I often have multiple buttons on a form which are 'butted' up to each other
in a brick like fashion and I use the 'send to back / front' buttons on the
Layout Toolbar to arrange them in the correct order (i.e. so that the first
button is overlapped slightly by the second and the second is overlapped
slightly by the third) giving the impression that they are nestled tightly
together......however when I save & exit from the form and then go back into
it the 'order' has changed - i.e. the first button could be 'overlapping'
the second rather than vice-versa - it is completely random. It seems to
worsen when their are boxes / shapes on the form but this is not always the
case.

I'm using VFP9 but it's a long standing problem that I've seen in earlier
versions. Has anyone else experienced this?

Re: ZORDER - Bring to front - not working by tim_witort

tim_witort
Mon Jan 22 11:28:07 CST 2007

Andy Trezise seemed to utter in
news:u8o8jljPHHA.4424@TK2MSFTNGP06.phx.gbl:

> This is one of those annoying little things that I've never found the
> answer too.....
>
> I often have multiple buttons on a form which are 'butted' up to each
> other in a brick like fashion and I use the 'send to back / front'
> buttons on the Layout Toolbar to arrange them in the correct order
> (i.e. so that the first button is overlapped slightly by the second and
> the second is overlapped slightly by the third) giving the impression
> that they are nestled tightly together......however when I save & exit
> from the form and then go back into it the 'order' has changed - i.e.
> the first button could be 'overlapping' the second rather than
> vice-versa - it is completely random. It seems to worsen when their are
> boxes / shapes on the form but this is not always the case.
>
> I'm using VFP9 but it's a long standing problem that I've seen in
> earlier versions. Has anyone else experienced this?

I experience this from time to time in VFP6. It seems to happen
most frequently when working on pageframes and in overlapping
containers. When I have this happen, I end up having to add
some code to the form's Init to fix the incorrect z-order. I
just use the ZOrder method on the offending controls to get them
correctly stacked.

-- TRW
_______________________________________
t i m
a t
w i t o r t d o t c o m
_______________________________________

Re: ZORDER - Bring to front - not working by Al

Al
Mon Jan 22 11:51:22 CST 2007

This has to do with the Zorder of the class also
We have a projhook method that removes all the zorder lines of classes
and/or forms (not usually needed since the zorder is tab order if no zorder
lines)

al


"Andy Trezise" <andy@work.com> wrote in message
news:u8o8jljPHHA.4424@TK2MSFTNGP06.phx.gbl...
> This is one of those annoying little things that I've never found the
> answer too.....
>
> I often have multiple buttons on a form which are 'butted' up to each
> other in a brick like fashion and I use the 'send to back / front' buttons
> on the Layout Toolbar to arrange them in the correct order (i.e. so that
> the first button is overlapped slightly by the second and the second is
> overlapped slightly by the third) giving the impression that they are
> nestled tightly together......however when I save & exit from the form and
> then go back into it the 'order' has changed - i.e. the first button could
> be 'overlapping' the second rather than vice-versa - it is completely
> random. It seems to worsen when their are boxes / shapes on the form but
> this is not always the case.
>
> I'm using VFP9 but it's a long standing problem that I've seen in earlier
> versions. Has anyone else experienced this?
>