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



Creating a Web API

Creating dialog boxes in a web app

Issue: 10.2 (January/February 2012)
Author: Paul Lefebvre
Article Description: No description available.
Article Length (in bytes): 3,609
Starting Page Number: 65
RBD Number: 10213
Resource File(s):

Download Icon 10213 project.zip Updated: Wednesday, January 4, 2012 at 2:57 PM

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


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.

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