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" <[EMAIL PROTECTED]> 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 > > >

