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 18 in printed book and digital formats -- plus a one-year subscription (beginning with 19.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 10.2 ('Assumption Approach')
Instant purchase and download via GumRoad!

COLUMN

Creating a Web API

Creating dialog boxes in a web app

Issue: 10.2 (January/February 2012)
Author: Paul Lefebvre
Author Bio: Paul Lefebvre has been using Real Studio for 10 years. His company, LogicalVue Software, specializes in creating database applications using Real Studio. Paul also runs the RBDevZone community site and is a founding member of the Association of Real Studio Professionals.
Article Description: No description available.
Article Length (in bytes): 5,261
Starting Page Number: 65
Article Number: 10213
Resource File(s):

Download Icon 10213 project.zip Updated: 2012-01-04 13:55:16

Related Link(s): None

Excerpt of article text...

The creation of dialog boxes with Web Edition is completely different than how it works with a desktop application. In this issue we will take a look at the WebDialog class.

WebDialog

In a desktop application, there are two ways to create a dialog. For simple dialogs, you can use the MessageDialog class and create your dialog in code. For more complex dialogs, you create a modal window and display it using the ShowModal (or ShowModalWithin) methods.

In Web Edition, you use the WebDialog class to create your dialogs. Regardless of whether they are simple or small, you will create your dialog by hand, adding the controls you need to it. The WebDialog can take on three different forms, although they each work the same: modal, sheet, and palette. A modal dialog pops up in the middle of the page, a sheet dialog drops down from the top of the browser, and a palette displays as a floating window within the page.

Let's get started by creating a new Real Studio Web project. Select the Project tab and you should see a button called "Add Dialog." This is the first difference from desktop applications where dialogs are created in code using the MessageDialog class.

This will add a WebDialog subclass to your project. Click it and add a dialog, changing its name to TestDialog.

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