[SimpleHierarchaelListMorph]

Steve Moffitt stevia at citlink.net
Tue May 9 18:42:00 UTC 2006


Alain sent this to beginners mailing list but I thought it might be  
useful to others.

Steve
Begin forwarded message:

> From: Steve Moffitt <stevia at citlink.net>
> Date: May 9, 2006 11:34:03 AM PDT
> To: alain.plantec at univ-brest.fr, "A friendly place to get answers  
> to even the most basic questions about Squeak."  
> <beginners at lists.squeakfoundation.org>
> Subject: Re: [Newbies] [SimpleHierarchaelListMorph]
> Reply-To: "A friendly place to get answers to even the most basic  
> questions about Squeak." <beginners at lists.squeakfoundation.org>
>
> Hi Alain
>
> I looked at the examples already and this was exactly what I was  
> looking for -- Thanks.
>
> Steve
> On May 9, 2006, at 10:46 AM, Alain Plantec wrote:
>
>> Hi all,
>> I've attached a SimpleHierarchicalList example.
>> It's a generic hierarchical list that is usable as is or as an how- 
>> to-use-it.
>> See GenericHierarchicalList class (class side) for examples.
>>
>> alain
>>
>>
>>> On 5/8/06, Steve Moffitt <stevia at citlink.net <http:// 
>>> lists.squeakfoundation.org/cgi-bin/mailman/listinfo/squeak-dev>>  
>>> wrote:
>>>>
>>>> / Hi -- I sent this to beginners list but didn't get a reply so  
>>>> will/
>>>> / try here./
>>>>
>>>> / Hi all -- and thanks in advance. I'm finding/
>>>> / SimpleHierarchaelListMorph 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 list: y./
>>>> / x openInWorld/
>>>>
>>>> / I've looked at the examples and still not getting it./
>>>> / Again thanks,/
>>>> / Steve/
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Saludos,
>>> Hernán
>>>
>>> -------------------------------------------------------------------- 
>>> ----
>>>
>>> _______________________________________________
>>> Beginners mailing list
>>> Beginners at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>>
>>
>> <Tools-GenericHierarchicalList.st.gz>
>> _______________________________________________
>> Beginners mailing list
>> Beginners at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20060509/d4c4a05a/attachment.htm


More information about the Squeak-dev mailing list