macko
08-06-2007, 08:20 AM
hi guys i can now disable alt f4 with this command put it on global event it is sure to work
function QueryAllowProjectClose()
if System.IsKeyDown(115) then
return false;
else
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
end
function QueryAllowProjectClose()
if System.IsKeyDown(115) then
return false;
else
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
end