RE: [flexcoders] LabelFunctions and SortFunctions

2005-03-30 Thread Simon Fifield
Hi Dirk,   I haven't quite got my head around the whole Delegate thing yet. When you say "This enforces that the function is called with the right scope" what do you mean?   I understand scope - so if I set my labelFunction without using the Delegate class, is there a chance of using or

RE: [flexcoders] LabelFunctions and SortFunctions

2005-03-30 Thread Dirk Eismann
with the right scope. Dirk. -Original Message- From: Simon Fifield [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 5:45 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] LabelFunctions and SortFunctions Hi Dirk, Thanks for the suggestion, I hadn't thought of th

RE: [flexcoders] LabelFunctions and SortFunctions

2005-03-30 Thread Simon Fifield
Hi Dirk,   Thanks for the suggestion, I hadn't thought of that, but it didn't work when I tried it. So I tried just   dg.getColumnAt( 0 ).labelFunction = dgVH.labelFunc;   and this did work. Its a big improvement over wrapping external class functions with a function!   But what I was o

RE: [flexcoders] LabelFunctions and SortFunctions

2005-03-30 Thread Dirk Eismann
Have you tried using the mx.utils.Delegate class? myGrid.getColumnAt(0).labelFunction = mx.utils.Delegate.create(anotherClassInstance, anotherFunction); haven't tested it, but it should work. Dirk. -Original Message- From: Simon Fifield [mailto:[EMAIL PROTECTED] Sent: Wednesday, Mar