Use of Zorder

zhaozj2021-02-11  235

Use of Zorder

After the zorder is opened, it is Z and ORDER, and its meaning is as follows: z: Here is the Z-seat shaft (note one) in the three-dimensional space, rather than refers to the 26th letters of English letters. Order: Order order. So Zorder is the order in the z-seat shaft!

The ZORDER syntax is as follows:

Object.zorder position

-------------------------------------------------- -------------------------

Object selective quotes. The object operate is used to specify the objects in the "suitable for" list. If Object is omitted, it is assumed that the FORM object with a resident point is Object. Position selective quotes. Integer is used to indicate the location of Object relative to the other Object Other execution individuals. If position is 0 or omitted, the Object is placed in front of the Z-order (above). If position is 1, the Object is placed behind the Z-order (below).

-------------------------------------------------- -------------------------

Select the "move to the top" or "Move to the underlying" functional table instruction in the design phase to set the Z-order of the object.

ZORDER is used in different places: 1. When the Child Form in MDIFORM, refers to the up and down position of each Child Form. 2. When all the controls in each form, refers to the upper and lower positional relationship between each control. (Note)

Note 1: Generally, our secondary planar scoroscope refers to the X-seat axis (east-west) and the Y-seat axis (north-south), two axes constitute a plane, plus vertical Z scattered axis, The three degree stereo space is constituted! Therefore, Zorder refers to the upper and lower positional relationship between the object in a vertical z-seat shaft.

Note: Although Zorder refers to the upper and lower positional relationship between the object in a vertical z-seat shaft. But many people don't know why he has set Zorder, why is it invalid in some controls?

The reason is that the single form or single container is divided into three levels on the vertical z-seat shaft: the lower layer: the drawing space of the graphical method results. Intermediate layer: Used to display graphical objects (such as Image) and Label control items. The above layer: Displays all non-graphics controls, such as CommandButton, Checkbox, or Listbox. ZORDER is only valid for the control items within a single level!

For example: If you set the zorder of Label and Image, it is valid because they are all in the middle! If you set Label and CommandButton, Zorder is invalid because they are in different layers!

The most important thing is: regardless of how Zorder is set, the objects above one layer will always be above the middle of the object! In the middle of the item, the object will always be above the bottom of the object!

转载请注明原文地址:https://www.9cbs.com/read-4834.html

New Post(0)