Article Preview
Buy Now
| Print: | |
| PDF: |
Beginner's Corner
Hierarchical Listboxes (Part 2)
Working with hierarchical listboxes
Issue: 6.2 (January/February 2008)
Author: Marc Zeedar
editor-at-rbdeveloper.com
Article Description: No description available.
Article Length (in bytes): 18,091
Starting Page Number: 32
RBD Number: 6213
Resource File(s):
6213.zip Updated: Tuesday, January 15, 2008 at 4:54 PM
Related Link(s): None
Known Limitations: None
Excerpt of article text...
In my last column, I began addressing some of the challenges in working with hierarchal lists. I demonstrated the differences between non-hierarchal and hierarchal lists and showed a couple different techniques for storing hierarchal information inside a listbox class. Today we're going to continue that lesson with a more sophisticated hierarchal listbox class.
Last time I showed a simple example of embedding data inside a Listbox control. We stored the hierarchal contents inside each listbox row's Celltag property as a simple text string. For such a simple example, it worked, but such an approach is not appropriate for more complex data. It wouldn't work for more than one folder level, for instance.
My Goal
My goal for this project was to design a "simple" hierarchal listbox that manages all the data for you. You put the data in and the user's free to manipulate the listbox, opening or closing folders, and dragging items around. This latter feature is the tricky one: with folders and subfolders and sub-subfolders the user can easily require extremely complicated data structure manipulation simply by moving groups of items around.
...End of Excerpt. Please purchase the magazine to read the full article.
Article copyrighted by REALbasic Developer magazine. All rights reserved.
|











