Professional Documents
Culture Documents
AMS Codes
AMS Codes
:
function QueryAllowProjectClose() --this function will be called when t
he program is exiting
confirmation = Dialog.Message("Are you sure?", "Are you sure that you want t
o exit?", MB_YESNO, MB_ICONEXCLAMATION, MB_DEFBUTTON1);
if confirmation == 6 then
-- The yes button was pressed, allow program to close (return true)
return true;
else
-- The yes button was NOT pressed, do NOT allow the program to close (Ret
urn false)
return false;
end
end
Combobox
on select (image)
if e_Selection == 7 then
Image.Load("Image1", "AutoPlay\\Images\\Almahasin (Dar Kotob Islamiya).png");
end
on select (pdf file)
if e_Selection == 7 then
File.Open("AutoPlay\\Docs\\???C? C??C?? ??? ??C?E C??AE? U C???I ???? C?????.pdf
", "", SW_SHOWNORMAL);
end