Figured it out after stepping away for a while. I didn't need the drawItem() function after all. Since it was the cause of all of the other problems, I wasn't sad to see it go. The drawItem() function in ListBase is also overriden in DataGridBase. So, I was confusing the program when I tried to override it again. Thanks for lending me a hand guys.
-TH
__________________________________
Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office: 866-CYNERGY
--- In [email protected], "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> Sorry Mike, should be Michael Schmalle. :: hitting head ::
>
> -TH
>
> --- In [email protected], "Tim Hoff" TimHoff@
> wrote:
> >
> >
> > Gordon,
> >
> > To eliminate the errors I added the following imports:
> >
> > import mx.controls.listClasses.IListItemRenderer;
> > import mx.controls.listClasses.BaseListData;
> > import mx.core.SpriteAsset;
> > import flash.display.DisplayObject;
> > import mx.core.IFlexDisplayObject;
> > import mx.core.UITextField;
> > import mx.events.TweenEvent;
> > import mx.effects.Tween;
> > import mx.core.IInvalidating;
> > //thanks to Michall Schmalle
> > import mx.core.mx_internal;
> > use namespace mx_internal;
> >
> > Copied private functions:
> >
> > private function
> > selectionTween_updateHandler(event:TweenEvent):void
> > private function selectionTween_endHandler
> (event:TweenEvent):void
> >
> > Other Isuues:
> >
> > var displayWidth not public
> > replaced with:
> > var displayWidth:Number = unscaledWidth - viewMetrics.right -
> > viewMetrics.left;
> >
> > Still working on this one:
> >
> > In the drawItem() function - item.width equals the width of
> the
> > first column only. The highlight only covers the first cell in the
> > column. I'm looking to see if this function is called by another
> class
> > that repeats for each column. If I replace item.width with
> > displayWidth it works for the row, but I haven't checked the cell
> if
> > selectable = true.
> > __________________________________
> >
> > I have the selection and highlight alphas working hackishly. Just
> > cleaning-up the bandaids. Just seeing if I could make a glass
> DataGrid.
> > Here's
> >
> <http://www.iepl.net/DataGridTransparentHeaderSample/DataGridTranspar
> ent\
> > HeaderSample.html> where I'm at with it. Any suggestions would be
> > appreciated.
> >
> > -TH
> > __________________________________
> >
> > Tim Hoff
> > Cynergy Systems, Inc.
> > http://www.cynergysystems.com
> > Office <http://www.cynergysystems.comoffice/> : 866-CYNERGY
> >
> >
> >
> > --- In [email protected], "Gordon Smith" <gosmith@>
> > wrote:
> > >
> > > What methods couldn't you override? What were the compile errors?
> > >
> > >
> > >
> > > - Gordon
> > >
> > >
> > >
> > > ________________________________
> > >
> > > From: [email protected]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff
> > > Sent: Thursday, October 19, 2006 2:44 PM
> > > To: [email protected]
> > > Subject: [flexcomponents] Override Functions in Parent Classes
> of a
> > > Custom Component
> > >
> > >
> > >
> > > Hi all,
> > >
> > > I created this simple sample
> > >
> >
> <http://www.iepl.net/DataGridTransparentHeaderSample/DataGridTranspar
> ent
> > > HeaderSample.html> to allow transparent headers for a DataGrid
> > control.
> > > However, if I also wanted to allow transparency for the Row/Cell
> > > Highlight and Selection, I have to override the draw methods in
> the
> > > mx.controls.listClasses.ListBase class (two levels up). I tried
> > > overriding the ListBase methods in my custom component, but ran
> into
> > an
> > > endless series of compile errors. This is probably a simple
> question,
> > > but is there an easier (or possible) way to do this?
> > >
> > > Thank you for any suggestions,
> > >
> > > -TH
> > > __________________________________
> > >
> > > Tim Hoff
> > > Cynergy Systems, Inc.
> > > http://www.cynergysystems.com
> > > Office <http://www.cynergysystems.comoffice/> : 866-CYNERGY
> > >
> >
>
| Software development tool | Application development software | Development software |
| Development outsourcing software | Embedded software development |
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe
__,_._,___
