PARENTWIN Property
PLBCMP GUI Only
The PARENTWIN property associates a WINDOW object with a parent window. The property uses the following format:
PARENTWIN={value}
Note the following:
PARENTWIN may be used in CREATE, SETPROP, or GETPROP statements of a WINDOW object.
{value} specifies the parent window object for CREATE and SETPROP statements.
{value} returns the parent window handle in GETPROP statements.
If a WINDOW object specified for the PARENTWIN property has not been created, an O121 error will occur.
A WINDOW object that has been created as a MODAL or MODELESS type cannot be the parent for another window. An O134 error will occur if a MODAL or MODELESS window is specified as a parent window.
An O134 error will occur if this property is specified for a MODAL WINDOW object. A parent window cannot be specified for a MODAL WINDOW object.
The PARENTWIN property can be used for any window created as a PRIMARY or MODELESS type.
If a parent window is DESTROYed, any windows that are associated with the parent will also be destroyed.
See Also: Object Properties, Object IO Instructions, Object Definitions
![]() |