Article Preview
Buy Now
| PDF: |
Feature
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):
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.
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.
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.
|









