On Fri, Nov 23, 2012 at 6:34 AM, Staffan Tylen <staffan.ty...@gmail.com>wrote:


> The event handlers for the LV and TV custom sorts both accept 2 arguments
> documented as data1 and data2 that are the custom data of the items to
> sort. Would it be possible to add two more arguments that contain the item
> text for each item? I have a need to apply a custom sort on the item text
> but this information is currently not part of the item data.
>

No it is not possible.  The only information available is the Rexx object
that you assign as the item data.

If you want the text of the item available, then you need to make the text
available in the object you assign as the item data.  Just change whatever
object you are currently assigning to something that includes the text.

Say right now you are assigning object AA to item 1, then just do this:

d = .Directory~new
d~currentObj = AA
d~text = textOfItem1

lv~setItemData(1, d)

Of course there are any number of ways of doing it.  The thing is, you can
assign any object you want as the item data.  It is up to you to design an
object that contains all the data you need.

--
Mark Miesfeld
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to