guides:programming:programmers_reference_manual:set_zorder_message

SET_ZORDER message

Allows the z-order position of a control to be set programmatically.

All Controls

x = Send_Message(objFront, "SET_ZORDER", objBehind)

For SET_ZORDER, Send_Message() has the following parameters.

ParameterDescription
objFrontA control.
objBehindValue - Description
objectName - The objBehind control is set to be after the objFront control in the z-order.
[A null value] - The objFront control is set at the top of the z-order.
-1 - The objFront control is set at the bottom of the z-order.

There are times when designing a form that a Group Box will display in front of controls that exist "within" the group box. The Z-ORDER is out of balance with the intention of the developer. Using the SET_ZORDER message can be used to remedy this behavior.

* Set a group box to be behind a label.

myLabel = @window : ".LABEL_1"

myGroupBox = @window : ".GROUP_1"

call Send_Message( myLabel, "SET_ZORDER", myGroupBox)
  • guides/programming/programmers_reference_manual/set_zorder_message.txt
  • Last modified: 2024/06/19 20:20
  • by 127.0.0.1