New topic: 

Hierarchical ListBox as a navigation pane

<http://forums.realsoftware.com/viewtopic.php?t=46332>

         Page 1 of 1
   [ 5 posts ]                 Previous topic | Next topic          Author  
Message        terreywe          Post subject: Hierarchical ListBox as a 
navigation panePosted: Sun Dec 23, 2012 10:05 pm                         
Joined: Wed Oct 31, 2012 11:21 pm
Posts: 3                Hi all, 

Looking for some help in regards to using hierarchical ListBox as a navigation 
pane/control. At the moment having 2 inquiries 

1. using the sample coding provided in the RS documentation : 
http://docs.realsoftware.com/index.php/Listbox , I was able to create a 2 level 
listbox, but the design needed would be needing 3-4 levels. e.g

Region(north,south,east,west)
|-->Branch (1, 2, 3, etc)
  |-->information about the branch/location etc.
    |-->Staff/headcount/accounts etc 

is there a way to make this happen? tried making some changes but nothing 
happens at all.

2. Using this listbox as a navigation control, any ideas of how to get this to 
open a page/navigation windows, for example to open the "Headcount Info for 
Branch 1"  page when the proper link is selected? I tried using mousedown, but 
it doesnt work, or perhaps I'm new to programming so i totally got this concept 
wrong? 

Either way, appreciate any help in this regards, and once again, thank you   
                             Top                mpastor          Post subject: 
Re: Hierarchical ListBox as a navigation panePosted: Mon Dec 24, 2012 9:12 am   
                      
Joined: Sat Oct 18, 2008 4:58 pm
Posts: 116                Have you used the Indent property?

ListBox.InsertRow ( RowNumber as Integer, Item as String, [Indent as Integer] ) 

You need to increase the indent for every new level (i.e. 1 for first level 
indent, 2 for second level, etc.)   
                             Top                timhare          Post subject: 
Re: Hierarchical ListBox as a navigation panePosted: Mon Dec 24, 2012 1:06 pm   
                      
Joined: Fri Jan 06, 2006 3:21 pm
Posts: 11911
Location: Portland, OR  USA                Use AddFolder in the ExpandRow event 
to get a deeper hierarchy.   
                             Top                nelson2012          Post 
subject: Re: Hierarchical ListBox as a navigation panePosted: Mon Dec 24, 2012 
8:24 pm                         
Joined: Mon Dec 03, 2012 8:50 pm
Posts: 10                To select a link, try either CellClick or DoubleClick 
(using data from MouseDown to ID the cell).   
                             Top                terreywe          Post subject: 
Re: Hierarchical ListBox as a navigation panePosted: Tue Dec 25, 2012 2:47 am   
                      
Joined: Wed Oct 31, 2012 11:21 pm
Posts: 3                ok, thanks guys, will try it once back, I'm working on 
Christmas today..    
                             Top             Display posts from previous: All 
posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost 
timeSubject AscendingDescending          Page 1 of 1
   [ 5 posts ]      
-- 
Over 1500 classes with 29000 functions in one REALbasic plug-in collection. 
The Monkeybread Software Realbasic Plugin v9.3. 
http://www.monkeybreadsoftware.de/realbasic/plugins.shtml

[email protected]

Reply via email to