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):
4610.sit Updated: Tuesday, October 10, 2006 at 9:48 AM
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.
|








