OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Peter on August 31, 2009, 06:41:24 AM

Title: Tree Control Example
Post by: Peter on August 31, 2009, 06:41:24 AM
Good Morning Group,

(This is my first post on this forum)

I have need for a program I am developing for a tree Control.

Can you share with me the structure of the list of sublists necessary for this control?

is it like

(list (list "A" "1" "ItemA11")
      (list "A" "2" "ItemA21")
      (list "B" "1" "HelloB11")
      (list "B" "2" "TestB21")
      (list "B" "2" "TestB22")
...
)

Something else?

Also do any of you have a simple example that shows the population and manipulation of a tree?
Title: Re: Tree Control Example
Post by: owenwengerd on August 31, 2009, 05:32:43 PM
Welcome aboard, Peter. Have you looked at the TreeView.lsp sample that gets installed with OpenDL Studio? In that file, the c:TreeView_Main_OnInitialize function adds several parent nodes, and several child nodes to the tree control.