Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - MessageBox on close
  FAQ FAQ  Forum Search   Register Register  Login Login


Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

MessageBox on close

 Post Reply Post Reply
Author
slang75 View Drop Down
New Member
New Member


Joined: 05 Apr 2012
Points: 4
Post Options Post Options   Quote slang75 Quote  Post ReplyReply Direct Link To This Post Topic: MessageBox on close
    Posted: 15 Dec 2015 at 4:36pm
Hi,

How to I code a messagebox to appear if the user closes a PDF? Like "Are you sure you want to close?

Thanks!
Back to Top
Sponsored Links


Back to Top
gkaiseril View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Location: USA
Points: 4108
Post Options Post Options   Quote gkaiseril Quote  Post ReplyReply Direct Link To This Post Posted: 15 Dec 2015 at 7:36pm
Since a PDF can  be closed from the menu bar options exit and close, the upper right hand corner "X" for the PDF or application there is no universal solution. One can add a button for closing and include the option for the mouse up action.
 
Once uses the app.alert property and acts based on the return value for the button selected on the alert message.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.070 seconds.