Show / Hide Table of Contents

Method dialog.SetOwnerWindow


Overload

Sets owner window.

public void SetOwnerWindow(AnyWnd owner, bool ownerCenter = false, bool dontDisable = false)
Parameters
owner  (AnyWnd)

Owner window, or one of its child/descendant controls. Can be wnd, WPF window or element, winforms window or control. Can be null.

ownerCenter  (bool)

Show the dialog in the center of the owner window. dialog.SetXY and dialog.Screen are ignored.

dontDisable  (bool)

Don't disable the owner window. If false, disables if it belongs to this thread.

Remarks

The owner window will be disabled, and this dialog will be on top of it. This window will be in owner's screen, if screen was not explicitly specified with the dialog.Screen property. dialog.options.defaultScreen is ignored.

See Also

dialog.options.autoOwnerWindow