On 3/11/06, tobiaspatton <[EMAIL PROTECTED]> wrote:

[snip]

> When the user changes the selection in the list, updateDisplayList()
> is called for the newly deselected and selected items. My first
> thought was to inspect the selectedItems attribute of the parent
> list and adjust the drawing accordingly. However, it seems that the
> item renderer's updateDisplayList() method is invoked prior to the
> list's selectedItems attribute being updated.
[snip]

In your item renderer's updateDisplayList() you can do the following:

  if (ListBase(listData.owner).isItemSelected(this)) // selected
    drawSelectedStuff();
  else
    drawUnselectedStuff();

Manish


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to