PureLVSORT library : sorting ListIconGadgets (and more)
Moderator: gnozal
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Yet another library update (the last one I hope)
- changed : now I use CreateDIBitmap_() instead of CatchImage() so no more image library dependence (no chance to interfere with main program).
The locked column feature seems impossible to do, at least with LVM_SORTITEMS and the callback compare function. Sorry !
- changed : now I use CreateDIBitmap_() instead of CatchImage() so no more image library dependence (no chance to interfere with main program).
The locked column feature seems impossible to do, at least with LVM_SORTITEMS and the callback compare function. Sorry !
-
- Addict
- Posts: 841
- Joined: Mon Jun 07, 2004 7:10 pm
Can you make a function to detect which sorting direction a column is sorted with, and a function to sort after filesizes(f.exp: 15.02 MB, 5.98 GB 100 KB, 65 B)?
Great PB library.
Great PB library.
Last edited by Bonne_den_kule on Wed May 18, 2005 3:34 pm, edited 1 time in total.
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
I will see for the next version.Bonne_den_kule wrote:Can you make a function to detect which sorting direction a column is sorted with, and a function to sort after filesizes(f.exp: 15.02 MB, 5.98 GB 100 KB, 65 B)?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Update
- new feature : new column type #PureLVSORT_FileSize for sorting file sizes (examples : "1.23 GB", "235.51 MB", "1021 KB")
- new function : PureLVSORT_SetColumnAlignment()
- new function : PureLVSORT_SetColumnWidth()
- new function : PureLVSORT_GetSortingDirection()
- new feature : new column type #PureLVSORT_FileSize for sorting file sizes (examples : "1.23 GB", "235.51 MB", "1021 KB")
- new function : PureLVSORT_SetColumnAlignment()
- new function : PureLVSORT_SetColumnWidth()
- new function : PureLVSORT_GetSortingDirection()
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
- DoubleDutch
- Addict
- Posts: 3220
- Joined: Thu Aug 07, 2003 7:01 pm
- Location: United Kingdom
- Contact:
Nice (again!) 

https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
https://reportcomplete.com <- School end of term reports system
-
- Addict
- Posts: 841
- Joined: Mon Jun 07, 2004 7:10 pm
- Andre
- PureBasic Team
- Posts: 2137
- Joined: Fri Apr 25, 2003 6:14 pm
- Location: Germany (Saxony, Deutscheinsiedel)
- Contact:
First time I tested your lib myself. Thanks for a great lib!
A question from me: is it possible to use the LVSort sorting process to automatically do the sorting also in an array/linkedlist, which is related to the #ListIcon?
Else I must re-built my linkedlist manually or search the whole list for matching items after the user has choosen an item of the ListIcon. Would be nice, if here would be a possibility to "sync" both processes.

A question from me: is it possible to use the LVSort sorting process to automatically do the sorting also in an array/linkedlist, which is related to the #ListIcon?
Else I must re-built my linkedlist manually or search the whole list for matching items after the user has choosen an item of the ListIcon. Would be nice, if here would be a possibility to "sync" both processes.

-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
LVSort uses the #LVM_SORTITEMS message, so it directly sorts the gadget without knowing anything about arrays or linked lists.Andre wrote:A question from me: is it possible to use the LVSort sorting process to automatically do the sorting also in an array/linkedlist, which is related to the #ListIcon?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
- Fangbeast
- PureBasic Protozoa
- Posts: 4789
- Joined: Fri Apr 25, 2003 3:08 pm
- Location: Not Sydney!!! (Bad water, no goats)
This stuff is just great
Thanks Gnozal, you have no idea just how much help your library is. It just rocks!
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
-
- PureBasic Expert
- Posts: 4229
- Joined: Sat Apr 26, 2003 8:27 am
- Location: Strasbourg / France
- Contact:
Update
What's new :
- fixed a bug in date sorting (I was using PB date functions, wich don't work for older dates)
- some optimizations
What's new :
- fixed a bug in date sorting (I was using PB date functions, wich don't work for older dates)
- some optimizations
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
hello gnozal,
i like the #PureLVSORT_DateDDMMYYYY flag.
i use it very very often but i need a little bit more powerful flag.
in fact, i need to display in a column a datetime like this :
DD/MM/YYYY HH:MM:SS or DD.MM.YY HH:MM
So is it possible to add DATETIME and TIME sorting ?
regards.
i like the #PureLVSORT_DateDDMMYYYY flag.
i use it very very often but i need a little bit more powerful flag.
in fact, i need to display in a column a datetime like this :
DD/MM/YYYY HH:MM:SS or DD.MM.YY HH:MM
So is it possible to add DATETIME and TIME sorting ?
regards.
No programming language is perfect. There is not even a single best language.
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer
There are only languages well suited or perhaps poorly suited for particular purposes. Herbert Mayer