Special

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 14 in printed book and digital formats -- plus a one-year subscription 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

PDF:

Beginner's Corner

Windows Basics

Working with windows (not the OS)

Issue: 7.3 (March/April 2009)
Author: Marc Zeedar editor-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 16,692
Starting Page Number: 42
RBD Number: 7312
Resource File(s):

Download Icon 7312.zip Updated: Monday, March 2, 2009 at 1:37 PM

Related Link(s): None
Known Limitations: 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.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com