Visualize a tree: Difference between revisions
Content added Content deleted
(Lingo added) |
|||
Line 974: | Line 974: | ||
=={{header|Lingo}}== |
=={{header|Lingo}}== |
||
<lang lingo>-- parent script "TreeItem" |
<lang lingo>-- parent script "TreeItem" |
||
-- (minimal implementation with |
-- (minimal implementation with direct property access) |
||
property name |
property name |
||
Line 999: | Line 999: | ||
end</lang> |
end</lang> |
||
Usage: |
Usage: |
||
<lang lingo> |
<lang lingo>-- create a tree |
||
-- create a tree |
|||
root = script("TreeItem").new("root") |
root = script("TreeItem").new("root") |
||
a = script("TreeItem").new("a") |
a = script("TreeItem").new("a") |