>IF UPPER(WSTYLES2.Controls(i).BaseClass) ='SHAPE' AND SUBSTR(UPPER(WSTYLES2.Controls(i).name),1,4) != 'PICT'
> WSTYLES2.Controls(i).zorder(1)
>ENDIF
>
>
>I have a configurable screen but often the shapes (used for out lines and borders around objects)
>end up in front and the user can no longer access the field..
>
>I am trying to ensure all shapes are always sent to back like you can do with the layout toolbar..
>
>So can you assume?
>_SCREEN.ACTIVEFORM.Controls(i).zorder(1)="Send to Back"
>and
>_SCREEN.ACTIVEFORM.Controls(i).zorder(0)="Send to Front"Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison