Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview

Buy Now

Issue 7.3


Windows Basics

Working with windows (not the OS)

Issue: 7.3 (March/April 2009)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 21,708
Starting Page Number: 42
Article Number: 7312
Resource File(s):

Download Icon 7312.zip Updated: 2009-03-02 13:37:17

Related Link(s): None

Excerpt of article text...

Windows are one of the most basic visual structures of a Graphical User Interface, yet working with them within REALbasic can be confusing for the beginner. Today we're going to explore how to show, hide, and close windows, work with different types of windows, create an app that lets us open multiple windows, and we'll even make a dynamic menu of all our app's open documents. I'll also show how to make a simple Splash screen for your applications.

Basic Window Handling

On the surface, adding a window to a REALbasic project is easy: just click the "New Window" button in the IDE and RB adds a number window to the project. Working with the window is also easy: double-click on it to open it in the Editor and drag controls onto the window. You can also refer to the window by name within code, so working with the window should be easy, right?

Well, things start to get complicated at this point. For instance, how do you display this second window? With a single-window app, REALbasic automatically displays the first window by default. But additional windows will not automatically display. You must manually tell them to display. For instance, to get the second window to display at launch you could add this code to App.Open:

...End of Excerpt. Please purchase the magazine to read the full article.