Creating an outliner application - Any ideas?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller

Post Reply
Simon Knight
Posts: 470
Joined: Wed Nov 04, 2009 11:41 am
Location: Gunthorpe, North Lincs, UK

Creating an outliner application - Any ideas?

Post by Simon Knight » Fri Oct 18, 2013 2:27 pm

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,
best wishes
Skids

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 825
Joined: Fri Aug 15, 2008 7:15 am

Re: Creating an outliner application - Any ideas?

Post by bangkok » Fri Oct 18, 2013 4:21 pm


Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: Creating an outliner application - Any ideas?

Post by Simon » Fri Oct 18, 2013 6:54 pm

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
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Simon Knight
Posts: 470
Joined: Wed Nov 04, 2009 11:41 am
Location: Gunthorpe, North Lincs, UK

Re: Creating an outliner application - Any ideas?

Post by Simon Knight » Fri Oct 18, 2013 7:58 pm

Thanks for the links. I'm off to do a spot of reading!
best wishes
Skids

wilstrand
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 114
Joined: Mon Jan 03, 2011 3:02 pm
Contact:

Re: Creating an outliner application - Any ideas?

Post by wilstrand » Sat Oct 19, 2013 3:04 am

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
http:www.tapirsoft.on-rev.com
Open Source LiveCode Plugins - rIDE, rGrid, rTree
LiveCode projects

openworld
Posts: 63
Joined: Sat Sep 11, 2010 3:56 am
Location: Virginia, USA
Contact:

Re: Creating an outliner application - Any ideas?

Post by openworld » Sun Mar 19, 2017 7:13 pm

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

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”