Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Aug 19, 2018 12:14 pm
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Hierarchical ListBox as a navigation pane
PostPosted: Sun Dec 23, 2012 10:05 pm 
Offline

Joined: Wed Oct 31, 2012 11:21 pm
Posts: 12
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
 Profile  
Reply with quote  
 Post subject: Re: Hierarchical ListBox as a navigation pane
PostPosted: Mon Dec 24, 2012 9:12 am 
Offline

Joined: Sat Oct 18, 2008 4:58 pm
Posts: 135
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
 Profile  
Reply with quote  
 Post subject: Re: Hierarchical ListBox as a navigation pane
PostPosted: Mon Dec 24, 2012 1:06 pm 
Offline

Joined: Fri Jan 06, 2006 3:21 pm
Posts: 12388
Location: Portland, OR USA
Use AddFolder in the ExpandRow event to get a deeper hierarchy.


Top
 Profile  
Reply with quote  
 Post subject: Re: Hierarchical ListBox as a navigation pane
PostPosted: Mon Dec 24, 2012 8:24 pm 
Offline

Joined: Mon Dec 03, 2012 8:50 pm
Posts: 11
To select a link, try either CellClick or DoubleClick (using data from MouseDown to ID the cell).


Top
 Profile  
Reply with quote  
 Post subject: Re: Hierarchical ListBox as a navigation pane
PostPosted: Tue Dec 25, 2012 2:47 am 
Offline

Joined: Wed Oct 31, 2012 11:21 pm
Posts: 12
ok, thanks guys, will try it once back, I'm working on Christmas today.. :(


Top
 Profile  
Reply with quote  
 Post subject: Re: Hierarchical ListBox as a navigation pane
PostPosted: Sat Dec 29, 2012 2:17 pm 
Offline

Joined: Wed Oct 31, 2012 11:21 pm
Posts: 12
Hi guys,

just wanted to say thanks, at the end we kept a 2 tier listbox, for some reason, we couldnt get it to 3 tier, but this was a design wise desicion, so all should be ok

btw, thanks nelson for pointing out the double click function, that helped us go further, so yeah, my thanks for helping out too..

either way, it great to know there are great guru's around to help, keep up the great work, and Happy New year (^__^)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group