Thanks for the input Valghor, but let's shorten it to moron. The flex3 framework is far from perfect; as far as skinning is concerned. However, there's usually a way to work around most challenges (kudos again to the engineering team). If you read the original post, the objective was to NOT have a visual indicator when the user rolled-over a DataGrid header. Far be it for me to criticize the use-case, but your assumption that you can just set the rollOverColor style to the same color as the headerStyle colors is limiting at best; since gradients are involved and it would need to be used in the grid itself. I suggest that you read the code.
-TH --- In [email protected], "valdhor" <valdhorli...@...> wrote: > > Isn't that an oxymoron? > > A rollover highlight is a change of color isn't it? If the header retained the same color there would be no "highlight". > > If you could skin/style the rollovercolor to be the same as the nonrollovercolor then that should achieve the required result. Of course, I have no idea whether skinning/styles allows that as I have not tried it. > > > --- In [email protected], "Tim Hoff" TimHoff@ wrote: > > > > > > He's looking to prevent the roll-over highlight of the DataGrid header. > > For that object, you can't skin or change the style; except for the > > color. > > > > -TH > > > > --- In [email protected], "valdhor" <valdhorlists@> wrote: > > > > > > Also, skinning should work. Check out http://www.munkiihouse.com/?p=14 > > > > > > > > > --- In [email protected], "Tim Hoff" TimHoff@ wrote: > > > > > > > > > > > > Monkey patching DataGridHeader works. Just copy DataGridHeader.as > > into > > > > mx/controls/dataGridClasses (you'll have to create these folders in > > the > > > > src folder of your project), comment out the drawHeaderIndicator > > line in > > > > the mouseOverHandler function. > > > > > > > > -TH > > > > > > > > --- In [email protected], "Tim Hoff" <TimHoff@> wrote: > > > > > > > > > > > > > > > Looks like it's drawn in the mouseOverHandler function in > > > > > DataGridHeader.as: > > > > > > > > > > drawHeaderIndicator(s, r.x, 0, visibleColumns[i].width, > > > > > cachedHeaderHeight - 0.5, getStyle("rollOverColor"), r); > > > > > > > > > > You'll have to try to extend DataGrid and DataGridHeader, or > > > > monkeyPatch > > > > > DataGridHeader. > > > > > > > > > > -TH > > > > > > > > > > --- In [email protected], "djhatrick" djhatrick@ wrote: > > > > > > > > > > > > > > > > > > Ha, no that doesn't help, but things, i want to remove the mouse > > > > Over > > > > > highlight fill. Not the header column colors. > > > > > > > > > > > > Thanks > > > > > > Patrick > > > > > > > > > > > > > > > > > > --- In [email protected], "valdhor" valdhorlists@ > > wrote: > > > > > > > > > > > > > > Try... > > > > > > > > > > > > > > <mx:DataGrid headerColors="{[0xFF0000, 0xE6E6E6]}"/> > > > > > > > > > > > > > > or > > > > > > > > > > > > > > DataGrid's headerStyleName > > > > > > > > > > > > > > or > > > > > > > > > > > > > > DataGridColumn's headerRenderer > > > > > > > > > > > > > > > > > > > > > --- In [email protected], "djhatrick" <djhatrick@> > > wrote: > > > > > > > > > > > > > > > > but how do I remove the header highlight fill from a > > datagrid? > > > > > > > > > > > > > > > > DatagridHeader is nearly impossible to override, i want to > > kill > > > > > that f**n fill. > > > > > > > > > > > > > > > > It's driving me crazy, it's a all bright white... > > > > > > > > > > > > > > > > BTW, looping over the children in createChildren and > > manually > > > > > setting focusAlpha to 0 does not help. > > > > > > > > > > > > > > > > Any help there. > > > > > > > > > > > > > > > > Thanks, > > > > > > > > Patrick > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >

