Re: ListView sort problem

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hello again,


I decided to give it a shot, and it turned out quite easy to modify
my existing Listview class to an owner data type.  I did a 'standard'
sort of the sequence that holds the data in response to a col click,
and that worked rather well too, but i had to use the REDRAW message
instead of the UPDATE one in order to get everything in the Listview
redrawn right there and then...without that all the old data still
appeared in the LV at least until something 'physically' caused a
redraw (such as an overlapping window moved aside).
Interesting, in that it's probably simpler to implement this kind
of listview rather than the type you have to send it all the items.
Drawback is that it's going to take longer to repaint, but how much
longer may not be a problem anyway, and that one way or another,
you have to manage the data...which i havent decided what would be
best yet...all app listviews in one big sequence or let the individual
listviews handle their own sequences.

Now that the sorting mechanism is in place, the next step is to
implement some sort of sort alg where you can sort by any subsequence,
instead of just the first one...

data=
  {
    {1,"b"},
    {2,"a"}
  }

stays the same for a normal sort, but changes if sorting by the
second 'column' of data, so...

I guess the next step is to create an alg that sorts according
to whatever col you wish.



Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu