Sorry I can't see how this helps, this shows how to drag and drop
columns on a datagrid, which is not the same as having an icon in the
column header. All I want to do is put an icon in the header of each
column on the datagrid, however as you can see from this renderer
class I can show a tooltip and have the text set to R, but I really
want to show a little fork and knife icon instead of having an 'R',
and a tooltip.
import mx.controls.Label;
class refreshRenderer extends mx.controls.Label{
var lbl : MovieClip;
var listOwner : MovieClip; //Reference to the parent DataGrid.
function myRenderer(){
}
public function createChildren():Void {
lbl = createClassObject(Label, 'label', 1, {toolTip: 'Are there
refreshment facilities?'});
lbl.text = "R";
}
public function getPreferredHeight():Number {
return listOwner.rowHeight;
}
public function layoutChildren():Void {
lbl.setSize(18, listOwner.rowHeight);
}
function setValue(str:String, item:Object, sel:Boolean) : Void {
}
}
--- In [email protected], Manish Jethani
<[EMAIL PROTECTED]> wrote:
> On Apr 11, 2005 1:59 AM, digital_eyezed <[EMAIL PROTECTED]> wrote:
>
> > I've done that now, however, what about in the header, can I use a
> > headerRenderer to show an Icon in the header? The documentation
> > doesn't show this as being possible.
>
> You can use a custom header renderer. See this example in which
I've
> created a custom header renderer:
> http://manish.revise.org/flash/flex/ReorderableHeaderRenderer.zip
>
> --
> [EMAIL PROTECTED]
> http://manish.revise.org/
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/