How do I ask users if they are sure they want to close the main window?

Use HEScript scripting and a dedicated event in UserMain (OnWindowCloseQuery):

For instance, use this HEScript function in your UserMain script.

function OnWindowCloseQuery (WindowName: String): Boolean;
begin
 Result := True;
 if MessageBox("Do you really want to close this window?", "Confirmation", MB_YESNO+MB_ICONWARNING) = IDNO then Result := False;
end;

imgFrequently Asked Questions

imgSearch and post your questions to the user forum

 


About

This is the online documentation of HTML Executable.

About HTML Executable

HTML Executable is a versatile HTML compiler and ebook compiler: it lets you create secure ebooks and desktop applications with your websites, HTML or PDF documents.

You can easily create attractive ebooks, full-featured HTML applications (RIA) and software, digital publications from your websites, PDF files and HTML documents for online or offline distribution.

Learn more - Free Trial