<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>Am 24.06.2007 um 00:44 schrieb Juraj Kubelka:</div><br class="Apple-interchange-newline"><blockquote type="cite"><p style="margin: 0.0px 0.0px 0.0px 0.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></p> </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></body></html>