[Newbies] [SimpleHierarchaelMorphList]

Steve Moffitt stevia at citlink.net
Sun May 7 21:04:24 UTC 2006


Hi all -- and thanks in advance. I'm finding  
SimpleHierarchaelMorphList not so simple. I can add items to the list  
easily enough if code that follows is anywhere close to being right,  
but how would I add a subitem programactically to item 1.

x := 		SimpleHierarchicalListMorph
			on: [ OrderedCollection with:  (ListItemWrapper with: 'item 1')  ]
			list: #value
			selected: nil
			changeSelected: nil
			menu: nil
			keystroke: nil.

y := x  getList.
y add: (ListItemWrapper with: 'item 2').
x openInWorld

Again thanks,
Steve


More information about the Beginners mailing list