Basic RB Controls, Part 2
Working with radio buttons, checkboxes, and other "simple" controls
Issue: 8.2 (January/February 2010)
Author: Marc Zeedar editor-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 15,349
Starting Page Number: 50
RBD Number: 8212
8212.zip Updated: Monday, January 4, 2010 at 1:36 PM
Related Link(s): None
Known Limitations: None
Excerpt of article text...
In my last column I began discussing basic REALbasic controls by exploring RectControl, the parent object of almost all REALbasic controls. In object-oriented programming, understanding the parent means understanding the children. But of course the children have their own special characteristics and unique features, so we need to look at them to see how to use those capabilities.
To begin our control exploration, we'll start with the simpler controls and make our way toward the more complicated. (This will be a multi-part series.)
REALbasic includes a few "visual" controls (see Figure 1). These include Line, Oval, Rectangle, and RoundRectangle.
These controls do nothing but display something: a line or shape, for instance. That might seem pointless, but keep in mind that because these are subclasses of RectControl, they still act like controls and can receive events such as MouseDown. However, it is important to remember that because these are merely visual elements, users are not expecting these to act like controls and it's not necessarily an appropriate user interface to use them as such. For example, a user would not necessarily know that clicking on an oval would do something. You're best off using standard interface controls and not doing your own thing.
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.