Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Feature

Designing a Visual Layout Editor

Part One

Issue: 4.6 (July/August 2006)
Author: Charles Yeomans
Article Description: No description available.
Article Length (in bytes): 33,014
Starting Page Number: 25
RBD Number: 4610
Resource File(s):

Download Icon 4610.sit Updated: Tuesday, October 10, 2006 at 9:48 AM
Download Icon 4610.zip Updated: Tuesday, October 10, 2006 at 9:48 AM

Related Web Link(s):

http://www.declareSub.com/

Known Limitations: None

Excerpt of article text...

Adding visual layout capability to applications is a complex task. As evidence for this, you only need to leaf through the book "Design Patterns" to see that several of the patterns have their origins in designing visual layout editors. In this two-part article, we tackle the design of a simple layout editor. More precisely, we will develop a mockup of a layout editor that I hope will suggest how one might go about the design of a visual layout editor, and illustrate some technique.

Getting Started

As a model for the look-and-feel of our layout editor, we look to the REALbasic IDE. We will emulate its single-window design. Starting from a new project, rename Window1 to LayoutEditor. Open its editor, and a Listbox named WidgetListbox, and a Canvas named LayoutCanvas, arranging them as in the REALbasic IDE (see Figure 1).

We will want to be able to double-click the LayoutCanvas, so we implement a quick DoubleClickCanvas class subclass of Canvas. Here are the properties, methods, and events to add to DoubleClickCanvas.

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