Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#130 OODialog List Control Class Activate sort headers

ooDialog.4.2.1
closed
Mark Miesfeld
ooDialog (102)
complete
5
2013-01-12
2007-03-27
Jon Wolfers
No

The OODialog listControl Class allows one to have sort headers on the report view. One can detect columnclicks on these sort headers with the ConnectListNotify method.

However, many windows apps allow the sorting of the data by clicking on those column headers. One can simulate this with rexx code outside the object using the itemInfo & itemModify methods, but it is very slow. I intuit that the underlying windows listcontrol object has sort methods that our OODialog wrapper does not give us access to.

If the underlying object has this functionality can we access it too please.

I know that Mark has shown an interest in OOdialog recently so I thought this might interest him.

thanks,

Jon

Discussion

  • Mark Miesfeld
    Mark Miesfeld
    2007-03-30

    Logged In: YES
    user_id=191588
    Originator: NO

    Jon,

    Yes, I am interested in this. Too many things on my plate right now. I want to start working on 4.0. The ooDialog code in 4.0 is completely untouched. When I update that to work with the new APIs, I will try to bring as many ooDialog feature requests and bug fixes in as I can.

    Something like this, I would probably work out the details and test with the 3.1.2 code. So, this might get put in to the 3.x base before 4.0 is ready.

     
  • Mark Miesfeld
    Mark Miesfeld
    2012-08-27

    • status: open --> accepted
    • assigned_to: Mark Miesfeld
    • pending_work_items: --> code+doc+test
     
  • Mark Miesfeld
    Mark Miesfeld
    2012-09-05

    Committed revision [r8377]
    implementation code

    Committed revision [r8378]
    documentation

    The list-view control itself does the sorting by calling a comparison function with data pointing to 2 items. The comparison function returns 0, less than 0, greater than 0 to specify which item is ahead of the other in the sort.

    Implemented a sortItems() method that allows the comparison function to be invoked in the Rexx dialog and a way to use an internal comparison function in the native implementation code.

    • status: accepted --> pending
    • pending_work_items: code+doc+test --> complete
    • milestone: None --> ooDialog.4.2.1
     

    Related

    Commit: [r8377]
    Commit: [r8378]


Anonymous


Cancel   Add attachments