The close button

how does one capture the event of clicking the Close Button?


Use the CancelClose event of the Window. Return True in that event to stop the window from closing or False to allow it to close.

You know, there’s a number of great resources for beginners.

First, if you’re an absolute beginner to programming, there’s the textbook. It teaches you to program as well as use Xojo at the same time. Great two-in-one system.

There’s also a manual that comes with Xojo that teaches you the ins and outs of using the IDE, the language, and the features within. You can find that in the Documentation folder next to your installation of Xojo. There’s also an online reference

Lastly, when you’re ready to learn from examples, there’s a folder full of example projects next to your Xojo install called “Example Projects” It helps when you don’t intend to reinvent the wheel. Do not copy and paste code from example projects, that won’t help you at all.

Maybe Tim’s copy paste should just be pinned to the top of the forums? Or auto-sent to new users?

Just an idea. It’s great advice, of course.