<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
Sorry, I don't want to spam you but I thought about a possible solution for that issue.<div><br class="webkit-block-placeholder"></div><div>The first thing one could do is to subclass LazyListMorph to have a Morph which permits the displayStrings to keep their color. Then there is the need for a new PluggableListMorph which overrides PluggableListMorph &gt;&gt;listMorphClass to get this subclass of LazyListMorph. The next thing is to construct another OBMorphBuilder which changes #listMorphForColumn:.</div><div><br class="webkit-block-placeholder"></div><div>Then a new builder exists which delivers browsers with the wanted property. I don't know if there are other classes which have to be changed (OBPane?) or if there is an easier solution. Please give me your opinion.</div><div><br class="webkit-block-placeholder"></div><div>Robert </div><div><br class="webkit-block-placeholder"></div><div><div><div>Am 24.06.2007 um 02:18 schrieb Robert Krahn:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <br><div><div>Am 24.06.2007 um 00:44 schrieb Juraj Kubelka:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" style="font: 12.0px Helvetica">It is possible to use TextEmphasis&gt;&gt;bold now but TextColor&gt;&gt;green attribute doesn't work.</font></div> </blockquote></div><br><div>Yes, thats why the standard colors in LazyListMorph overwrite your chosen color. LazyListMorph &gt;&gt;display: atRow:on: looks like that:</div><div><br class="webkit-block-placeholder"></div><div><div>display: item  atRow: row on: canvas</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>"display the given item at row row"</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>| drawBounds |</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>drawBounds := self drawBoundsForRow: row.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>drawBounds := drawBounds intersect: self bounds.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>item isText</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ifTrue: [ canvas drawString: item in: drawBounds font: (font emphasized: (item emphasisAt: 1)) color: (self colorForRow: row) ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ifFalse: [ canvas drawString: item in: drawBounds font: font color: (self colorForRow: row) ].</div><div><br class="webkit-block-placeholder"></div><div>The item is your displayString but the color is changed to LazyListMorph &gt;&gt;colorForRow: which turns out to be the follow:</div><div><br class="webkit-block-placeholder"></div><div><div>colorForRow: <span class="Apple-tab-span" style="white-space:pre">        </span>row</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>^(selectedRow notNil and: [ row = selectedRow])</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ifTrue: [ Color red ]</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>ifFalse: [ self color ].</div><div><br class="webkit-block-placeholder"></div><div>It seems that those things are really in the guts of the system and because of that they cannot be <span class="Apple-style-span" style="font-family: 'Lucida Grande'; font-size: 11px; ">parameterized</span> easily (yet).</div></div></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Beginners mailing list</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.squeakfoundation.org</a></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners">http://lists.squeakfoundation.org/mailman/listinfo/beginners</a></div> </blockquote></div><br></div></body></html>