Real Software Forums
http://forums.realsoftware.com/

Do not close the window
http://forums.realsoftware.com/viewtopic.php?f=21&t=44875
Page 1 of 1

Author:  NaNdummy [ Mon Jul 30, 2012 9:00 am ]
Post subject:  Do not close the window

Hi...
Ive recently foun some befinner topics and questions by friends. They asked how to close a window without reseting its content. Easy, just use "Hide" instead of close. But still, if the user presses the close box, it will close instead. Following script for beginners does avoid this:
Function CancelClose(appQuitting as Boolean) as Boolean
If not appQuitting then return true
End Function

Thats it. I made it just for beginners, because the advanced most likely found it out already :) Put it into the window cancelClose event.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/