Top
PowerCOBOL V11.0 Reference
FUJITSU Software

5.105 ZOrder Method

Description:

Changes the Z-order, the order in which controls are painted (in the "Z" dimension - perpendicular to the surface of the screen).

It does not affect the TabIndex property.

Used in controls:

Animation

CheckBox

ComboBox

CommandButton

Custom

DriveList

Edit

FileList

FolderList

Frame

Graph

GroupBox

Image

Label

ListBox

ListView

MCI

OptionButton

ProgressIndicator

ScrollBar

Shape

Slider

StaticText

Tab

Table

TextBox

Toolbar

TreeView

Used in objects:

None.

Parameters:

[VT_I2 - ZorderPosS9(4) COMP-5]

Description of Parameters (with constants):

The new position of the control in the Z-dimension.

0: Puts the control at the top of the order.
(POW-ZORDER-FRONT)
1: Puts the control at the bottom of the order.
(POW-ZORDER-BACK)

If the parameter is omitted PowerCOBOL puts the control at the top of the order.

Return value:

None.

Example:

To ensure an image, called "CmImage1", is displayed behind all other controls on your form, code:

WORKING-STORAGE SECTION. 
01 ZOrder-Bottom PIC S9(4) COMP-5
                           VALUE 1.
PROCEDURE DIVISION.
    INVOKE CmImage1 "ZOrder" 
      USING ZOrder-Bottom

Backward compatibility
method name:

None.