This doesn't work for dialogboxes like message and the printerdialogbox.
But I found a workarround thanks to Xolatron
#constant gui2num 7
Window=createWindow(0,0,640,480,"WIndow",WINDOW_NORMAL,0,1,0)
SetDialogOwnerDLL()
do
getEvent
if eventType()=WINDOW_CLOSE
if eventsource()=Window
if questionMessage("Do you wish to exit?","Exit?")=1
end
endif
endif
endif
loop
end
function SetDialogOwnerDLL()
load dll "gui2.dll",gui2num
call dll gui2num,"setDialogOwner",window
endfunction
Don't forget to copy gui2.dll into your projectfolder.
I am part of the problem and will always be.
About my Enligh. No I can not write it very well.