GUI Help > setDialogOwner
setDialogOwner
| setDialogOwner handle gadget
Sets the gadget which will own any dialogs shown subsequently. Usually file, colour, font etc. dialogs are children of the main DarkBASIC Pro application window. If you want them to be parented to a window created using createWindow, you need to use this command before displaying the dialog.
Parameters:
gadget | Handle of the gadget that will own dialogs which are shown subsequently