Hi
I can't seem to get a resource specification 'fully' working for creating a treeview UI control. I can get the treeview control to show up but I haven't been able to get the list items to work. Probably just haven't figured out the proper formatting for the resource spec.
This creates the treeview control okay,
pickFolder: Panel {text: 'Select Folder for New Drawing', orientation: 'column', alignment: 'left', \
folderTV: TreeView {preferredSize: [470, 300]} \
} \
This does not work,
pickFolder: Panel {text: 'Select Folder for New Drawing', orientation: 'column', alignment: 'left', \
folderTV: TreeView {preferredSize: [470, 300], \
node1: Node {items: 'Projects'}\
} \
} \
I am able to get list items to show up if I add them after the window is created (using the first sample above and the following),
node1 = newDwgDialog.pickFolder.folderTV.add("node", "Projects");
Of course I could just keep doing this, but I'd like to get the resource specification doing everything if I can.
Thanks for your help
Doug