ZORDER Property


PLBCMP GUI Only

square.png Objects

 

The ZORDER property identifies the object that should be displayed on top when more than one object exists in the same space. The property uses the following format:

ZORDER={value}

Note the following:

  1. ZORDER may be used in CREATE, SETPROP, or GETPROP statements.

  2. ZORDER values may range from zero (0) to 65,535.

  3. The object that contains the highest ZORDER value is displayed on top of any object that has a lower value.

  4. When two objects contain the same ZORDER value, drawn objects (lines, shapes, icons, group boxes, pictures and static text) are displayed first. Window objects (EDITTEXT, DATALIST, COMBOBOXes, etc.) are then displayed.

  5. If the ZORDER property is not specified, a default value of zero is used.

  6. Any objects in 'Plane 1' are always on top of any object in 'Plane 0' except for the TABCONTROL object. Although, the TABCONTROL object exists in 'Plane 1', the 'Plane 0' objects may be placed on top of the TABCONTROL by assigning a higher ZORDER value than the TABCONTROL.

  7. When the ZORDER value for any object is higher than any other object in the same plane, the object with the higher value exists on top.

  8. The ZORDER exists for WINDOW objects only to define a default ZORDER starting value for objects created in that WINDOW.

  9.  When using the PL/B Web Server, all of the PL/B objects with the same parent are created in the same plane. Therefore, any PL/B objects that have the same parent must use the ZORDER to insure that the objects are shown as expected if objects are created on top or over other objects.

 

 

See Also: Object Properties, Object IO Instructions, Object Definitions

 



PL/B Language Reference ZOOMFACTOR Property