Yes, it does highlight a cell in this case. But...
It highlights a cell in a first column only regardless clicking on 
other columns. The x parameter is always 0, so it fills over a cell 
in the first column. Is it possible to get a column number that has 
been clicked? If yes then I can calc the X to start the fill from.
Almost there :)

--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Var g:Graphics = indicator.graphics
> 
>  
> 
> ________________________________
> 
> From: [email protected] 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Wednesday, June 25, 2008 6:26 AM
> To: [email protected]
> Subject: [flexcoders] Re: Question about drawSelectionIndicator
> 
>  
> 
> Here is my code:
> override protected function drawSelectionIndicator
(indicator:Sprite, 
> x:Number, y:Number, width:Number, height:Number, color:uint, 
> itemRenderer:IListItemRenderer):void 
> { 
> var g:Graphics = graphics;
> g.clear();
> g.beginFill(color);
> g.drawRect(x, y, width, height);
> g.endFill();
> }
> 
> But when I click I am not gettng any coloring over the clicked cell.
> 
> --- In [email protected] <mailto:flexcoders%
40yahoogroups.com>
> , "Alex Harui" <aharui@> wrote:
> >
> > You can draw your own graphic and not call super.
> > 
> > 
> > 
> > ________________________________
> > 
> > From: [email protected] <mailto:flexcoders%
40yahoogroups.com>
> 
> [mailto:[email protected] <mailto:flexcoders%
40yahoogroups.com>
> ] On
> > Behalf Of markgoldin_2000
> > Sent: Tuesday, June 24, 2008 10:02 AM
> > To: [email protected] <mailto:flexcoders%
40yahoogroups.com> 
> > Subject: [flexcoders] Re: Question about drawSelectionIndicator
> > 
> > 
> > 
> > Can I make it not to? So the width will effect selection spot too?
> > 
> > --- In [email protected]
> <mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
> 40yahoogroups.com>
> > , "Alex Harui" <aharui@> wrote:
> > >
> > > Because the super class ignores width.
> > > 
> > > 
> > > 
> > > ________________________________
> > > 
> > > From: [email protected]
> <mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
> 40yahoogroups.com>
> > 
> > [mailto:[email protected]
> <mailto:flexcoders%40yahoogroups.com>  <mailto:flexcoders%
> 40yahoogroups.com>
> > ] On
> > > Behalf Of markgoldin_2000
> > > Sent: Tuesday, June 24, 2008 7:26 AM
> > > To: [email protected] <mailto:flexcoders%
40yahoogroups.com>
> <mailto:flexcoders%
> 40yahoogroups.com> 
> > > Subject: [flexcoders] Question about drawSelectionIndicator
> > > 
> > > 
> > > 
> > > Here is mmy code:
> > > override protected function drawSelectionIndicator
> > (indicator:Sprite, 
> > > x:Number, y:Number, width:Number, height:Number, color:uint, 
> > > itemRenderer:IListItemRenderer):void 
> > > { 
> > > super.drawSelectionIndicator(indicator, x, y, width, height, 
> color, 
> > > itemRenderer);
> > > }
> > > Providing a different value for the height will create a 
> different 
> > > selection spot on the screen, but a different width does not 
seem 
> > to be 
> > > of any effect. Even a zero does not change it. It still selects 
> the 
> > > whole row, no matter what. Can someone explain why is that?
> > > 
> > > Thanks
> > >
> >
>


Reply via email to