abnrange
12-16-2008, 04:59 PM
Is it possible to disable the Windows X (exit)? If so how - Could not find anything in the forums.
See attached image. Thanks
RizlaUK
12-16-2008, 05:16 PM
look in the help file under "Hidden Global Functions"
for pages
function QueryAllowProjectClose()
result= Dialog.Message("Application Exit", "Are you sure that you want to quit?", MB_YESNO, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
--if they choose yes
if result == IDYES then
--allow the app to close
return true;
else
--cancel close
return false;
end
end
for dialogs
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
abnrange
12-16-2008, 06:18 PM
Thanks RizlaUK - That worked!
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.