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 where I'm at with it.  Any suggestions would be appreciated.

-TH
__________________________________

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com

Office
: 866-CYNERGY



--- In [email protected], "Gordon Smith" <[EMAIL PROTECTED]> 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/DataGridTransparent
> 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
>

__._,_.___


SPONSORED LINKS
Software development tool Application development software Development software
Development outsourcing software Embedded software development

Your email settings: Individual Email|Traditional
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

__,_._,___

Reply via email to