There's always Polymorph's PluggableIconListMorph... Should do what you need.
Regards, Gary ----- Original Message ----- From: "Tudor Girba" <[email protected]> To: <[email protected]> Sent: Friday, September 11, 2009 9:12 PM Subject: Re: [Pharo-project] icons in pluggablelistmorph > Thanks Lukas. Indeed, it is straightforward :). > > I will give it a try. > > Cheers, > Doru > > > On 11 Sep 2009, at 20:28, Lukas Renggli wrote: > >>> I would like to specify an icon in a PluggableListMorph, but I cannot >>> find my way :). Can anyone tell me how to do it? >> >> You need to create a subclass of PluggableListMorph and LazyListMorph, >> override #listMorphClass in the PluggableListMorph to return the lazy >> morph class, and override the method #display:atRow:on: in the >> LazyListMorph subclass to customize the low-level drawing of the list >> item. >> >> As you imagined all pretty simple and strait-forward, have a look at >> the OB-Morphic for an example :-) >> >> Cheers, >> Lukas >> >> -- >> Lukas Renggli >> http://www.lukas-renggli.ch >> >> _______________________________________________ >> Pharo-project mailing list >> [email protected] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > -- > www.tudorgirba.com > > "If you interrupt the barber while he is cutting your hair, you will > end up with a messy haircut." > > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
