Hello, I'm trying to prevent the dialog to close when the ESC key is pressed. Is it possible?
Code:
if e_Key == 27 then return false; end
function QueryAllowDialogClose(strDialogName) result= Dialog.Message("Close Dialog", "Are you sure that you want to close the dialog?", MB_YESNO, MB_ICONEXCLAMATION, MB_DEFBUTTON1); --if they choose yes if result == IDYES then --allow the dialog to close return true; else --cancel close return false; end end
function QueryAllowDialogClose() return false; end
[ATTACH]n303878[/ATTACH]
[ATTACH]n303882[/ATTACH]
Comment