Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 6.1

COLUMN

Hierarchical Listboxes (Part 1)

Working with hierarchical listboxes

Issue: 6.1 (November/December 2007)
Author: Marc Zeedar
Author Bio: Marc taught himself programming in high school when he bought his first computer but had no money for software. He's had fun learning ever since.
Article Description: No description available.
Article Length (in bytes): 19,111
Starting Page Number: 32
Article Number: 6113
Resource File(s):

Download Icon 6113.zip Updated: 2007-11-15 10:34:17

Related Link(s): None

Excerpt of article text...

Recently a subscriber wrote me with a question about working with hierarchical listboxes. This is an important and complicated subject that I decided would make an excellent topic for Beginner's Corner.

In a normal Listbox, the list holds the data. In a hierarchical Listbox, some of the lines are hidden (collapsed), so the Listbox can't store that information. You have to write code that is executed when the user clicks the disclosure triangle and exposes the contents of the folder. Your code needs to get that hierarchical data from somewhere and insert rows of data into the Listbox.

So the real question is: where do you store this data? There are basically two approaches.

...End of Excerpt. Please purchase the magazine to read the full article.