DesktopUIControl.Parent

From Xojo Documentation

Revision as of 18:10, 23 July 2021 by Gperlman (talk | contribs)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Object )
aDesktopUIControl.Parent = newObjectValue
or
ObjectValue = aDesktopUIControl.Parent

New in 2021r3

Supported for all project types and targets.

Used to get and set the control’s parent control or window.

Notes

Returns Nil if the parent is the window. Assign Nil to make the control's parent the window, even if it is enclosed by another control. The child control's behavior in the IDE will reflect the parent's state. If the parent control is somehow in another window, an InvalidParentException will occur.

Example

The following example sets the parent of the control to the window.

Me.Parent = Nil