Special

Special Print Closeout!

We're clearing out the remainder of our print issues at fire sale prices -- as much as 75% off! Quantities are extremely limited and only available while supplies last. Hurry to take advantage of this one-time offer.

RBD Magazines

Once these printed back issues are gone, they are gone!

Article Preview


Buy Now

Print:
PDF:

Databases for Real

Adding to the User Interface

Issue: 1.6 (June/July 2003)
Author: Paul Lefebvre
Author Bio: Paul Lefebvre is President and Chief Software Architect of LogicalVue Software, producers of SQLVue Professional and many other products.
Article Description: No description available.
Article Length (in bytes): 6,039
Starting Page Number: 27
RBD Number: 1613
Resource File(s):

Download Icon 1613.sit Updated: Friday, October 17, 2003 at 12:21 PM

Related Link(s): None
Known Limitations: None

Excerpt of article text...

This month we'll build the user interface needed to enter and change game information. The User Interface (UI) for this is a little different than the one we built for teams since only a single game at a time will be displayed. Starting with this issue I'll be using REALbasic 5 for all these examples.

To get started, open the softball.rb project (available from the REALbasic Developer Web Site).

Menus

First we will enhance our menu to allow access to our windows. To do this, add a menu header called "Database" with menu items "Teams" and "Games". Open the app object and add menu handlers for these two menu items. In the Teams menu handler, type wTeam.Show. In the Games menu handler, enter wGame.Show.

Game Window

Now, create a new window, wGame, and title it "Games". Drag over six StaticText controls, six EditField controls, three PopupMenu controls, four PushButton controls and one DataControl. Arrange and name them to look like figure 1.

Using the DataControl

In the Behavior section of the property window, set the DataControl Database property to "Softball", the TableName property to "Game", and the SQLQuery to "SELECT * FROM game". This control allows us to move between all rows in the table and saves us from writing some code.

...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