Hi all,
and now ?
are hierarchical listboxes a static listbox structur, I mean no drag reorder, no inserting rows and so on, while the rows are expanded ?
No REAL solution ?
Bad, sorry ...
8(
--
vkroll

Am 15.03.2006 um 14:27 schrieb Mark O'Neill:

Hi All,

Firstly, please forgive my apparent stupidity.

I've searched the NUG and searched the web but
can't for the life of me find a "complete" working
example of a hierarchical listbox that:

1. Stores data.
2. Does drag drop reorder.

I found an example on from Matt Neuburg's site:

http://www.tidbits.com/matt/rbexamplesToc.html

As far as I can see, the example on Matt's site
(thank you Matt, btw!) uses a single list - called
"links" to store the folder and child names which
he then refers to when collapsing and expanding
the rows. All makes sense so far. What I want to
know is...

1. How can I reference data from that list?

Basically, I have a text file which I want to scan
for keywords and when they're found they need to be
added to the hier listbox as bookmarks. When the
user clicks on the bookmark it should take them to
the relevant line in the text file. Like this...


+ KEYWORD: TEST
   - Line 5
   - Line 21
   - Line 22

+ KEYWORD: TEST 2
   - Line 6
   - Line 33

etc. etc. Where each "Keyword" is a folder and the
children below are the bookmarks.

So do I need to keep a separate hidden list with the
data and somehow synchronize both lists when their
expanded / collapsed or is there an easier way to
do this?

2. Drag drop reorder.

I imagine that the way I need to do this is to somehow
read the changes to the displayed list in the DragReorderRows
event, update the "links" list and then redraw the listbox
from the new list? But if I've got 2 lists on the go that
need synchronising (one for the data) this could get messy?

Any help / examples would be greatly appreciated.

Thanks for your help,

Mark.
(an RB newbie)



--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.2.3/281 - Release Date: 14/03/2006


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to