Is it possible to make a global version of an on-key action? After making several multiple page presentations, the custopmer wants the escape key to close the application. I dread having to enter this into each page's on_key properties page. Is there an easier way?
if e_Key == 27 then
nChoice = Dialog.Message("Confirm", "You sure you wanna close?", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON2);
if nChoice == 6 then
Application.Exit(0);
end
end
if e_Key == 27 then
nChoice = Dialog.Message("Confirm", "You sure you wanna close?", MB_YESNO, MB_ICONQUESTION, MB_DEFBUTTON2);
if nChoice == 6 then
Application.Exit(0);
end
end
Comment