You are on page 1of 2

to close the project

:
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

Button 1 ( to show an image )


on enter
Paragraph.SetVisible("Paragraph1", true);
on leave
Paragraph.SetVisible("Paragraph1", false);
Button 2 ( to show an image )
on enter
Paragraph.SetVisible("Paragraph2", true)
on leave
Paragraph.SetVisible("Paragraph2", false)

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

You might also like