Article Preview
Buy Now
| Print: | |
| PDF: |
Feature
Implementing Scrollable Control Lists
Issue: 4.4 (March/April 2006)
Author: Charles Yeomans
Article Description: No description available.
Article Length (in bytes): 13,403
Starting Page Number: 27
RBD Number: 4411
Resource File(s):
4411.sit Updated: Monday, March 20, 2006 at 10:49 AM
Related Web Link(s):
http://www.declareSub.com/
Known Limitations: None
Excerpt of article text...
Scrollable control lists are common in user interfaces of all sorts of applications. In this article, we will write a simple example to illustrate an approach to implementing them.
There are two main problems around which one must design. The first is that the only ways to create controls at runtime are to use control arrays or ContainerControls. This limits the extent to which one can write reusable classes. To some extent, one can work around this by using events to provide hooks for creating controls. But I've not had good luck with such an approach for control arrays. And each time I write a scrolling list, the UI is just different enough so as to require rewriting.
The second problem is REALbasic. Redrawing problems abound in the interaction of controls and scrolling. And ContainerControls remain a work in progress. In particular, layering ContainerControls does not really work yet.
Despite this, it is certainly possible right now to write decent scrolling lists in REALbasic. I use the basic design that follows in my own applications with goood results. So let's dive in.
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.
|











