Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sat Nov 18, 2017 5:18 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Do not close the window
PostPosted: Mon Jul 30, 2012 9:00 am 
Offline

Joined: Thu Dec 01, 2011 2:13 pm
Posts: 288
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.

_________________
Mac OS X 10.3-10.8
Windows 2000 (I know it sucks)
Windows Server 2007

You want a bunch of new classes and web styles? realstudiodevspot.com (search there for Web Styles Plugin)
Folderitem is too hard? File Bin Class
I hate cows.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group