Places the window object in the specified position in the Windows Z-Order.
Object.ZOrder ( [enAWindowZOrder] )
The ZOrder method syntax has the following parts:
Name |
Type |
Description |
Object |
A control |
A control object |
enAWindowZOrder |
enumAWindowZOrder |
An integer specifying the position in the Windows Z-Order for the object in its container. |
enumAWindowZOrder can be one of the following:
Name |
Value |
Description |
aWindowZOrderTop |
0 * |
Top of the order |
aWindowZOrderBottom |
1 |
Bottom of the order |
If your application has two buttons, one for "OK" and one for "Cancel", you can choose to position them on the same place on the form. Which one will show on top depends on the Z-Order. The following statement changes the Windows Z-Order of the AButton "Cancel" control to be on the bottom:
btnCancel1.ZOrder(aWindowZOrderBottom)
Applies to all controls and the AForm.