Page 1 of 1

Creating an outliner application - Any ideas?

Posted: Fri Oct 18, 2013 2:27 pm
by Simon Knight
Hi,
In the past I have written a few apps using Livecode but they have all had very basic graphic user interfaces often just a few text fields and the odd button. I have decided that I should improve my skills and have decided that I will attempt to create an outline type application.

I wish to be able to enter text notes in a hierarchical list and have the ability to collapse and expand nodes as well as being able to drag single notes between nodes.

I wonder which is the optimum way of building the user interface: a text field allows paragraphs to be hidden and indented but only offers a limited number of bullet types which do not include disclosure triangles. I assume that the basic text field has a practical limit on the amount of data that it can hold before everything slows down or stops. The datagrid is suppose to be very efficient so has no such limitation but it is more complex to implement and I am not sure how many of the features of the text field are available to a datagrid cell; I just tried using listdepth in a cell and failed.

So I am asking how the GUI experts would approach this problem?

Thanks in advance,

Re: Creating an outliner application - Any ideas?

Posted: Fri Oct 18, 2013 4:21 pm
by bangkok

Re: Creating an outliner application - Any ideas?

Posted: Fri Oct 18, 2013 6:54 pm
by Simon
Hi Simon,
Down at the bottom of this post:
http://forums.runrev.com/phpBB2/viewtop ... =9&t=13399
There is a GUI tree interface. Not sure if it's what you were looking for.

Simon

Re: Creating an outliner application - Any ideas?

Posted: Fri Oct 18, 2013 7:58 pm
by Simon Knight
Thanks for the links. I'm off to do a spot of reading!

Re: Creating an outliner application - Any ideas?

Posted: Sat Oct 19, 2013 3:04 am
by wilstrand
Hi Simon!

I have made a sample stack for you to use with rTree 2.0 (just released and dual licensed.)
which shows how to use rTree to build an Outliner Application. Check the
script of the buttons and the rTree group.

Download rTree 2.0 from: http://tapirsoft.on-rev.com/rtree/
and the Outliner sample from: http://tapirsoft.on-rev.com/sample-stacks/

Hope that this will get you started and that rTree will be useful in your projects!

With my best regards

Mats

Re: Creating an outliner application - Any ideas?

Posted: Sun Mar 19, 2017 7:13 pm
by openworld
Mats,

I've downloaded the latest version of rTree, and installed it on a stack via the Message box.

The rTree field shows up, and when I right click it raises hope of being able to import a .txt file on my drive (one with tab indents for an outliner view of the contents).

Yet rTree shows all of the .txt files on my Mac OS 10.11.6 (running Livecode 9.0.0-dp-5-Build 15004) as grayed out.

Also, it looks like the sample Outliner stack you mentioned above is no longer available on your site.

Any help will be much appreciated!

Best,

Mark
@openworld