PureLVSORT library : sorting ListIconGadgets (and more)

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Fangbeast wrote:Gnozal do we have to wait for pb 4 final before there is a release to the sort lib? I could certainly use this library right now.Regardez, Fang
I am afraid yes ! And not only PB4 final, but also Tailbite for PB4 final ...
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Konne
Enthusiast
Enthusiast
Posts: 434
Joined: Thu May 12, 2005 9:15 pm

Post by Konne »

Gosch u are a genious! Thx a lot!
Apart from that Mrs Lincoln, how was the show?
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

gnozal wrote:
Fangbeast wrote:Gnozal do we have to wait for pb 4 final before there is a release to the sort lib? I could certainly use this library right now.Regardez, Fang
I am afraid yes ! And not only PB4 final, but also Tailbite for PB4 final ...
I may slash my hamster crop in sadness:(
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

Hi,
Just a Thought, Is there any chance of list Export/Import to CSV built in?
I tried to decompres the file which is saved by "PureLVSORT_SaveListIcon"
With your PurePack.exe since you said it is the same compression, to see maybe how it is built and i could do parse it but i could not get it to work.
So a CSV will be cool feature.

Thanks.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Pantcho!! wrote:Hi,
Just a Thought, Is there any chance of list Export/Import to CSV built in?
I tried to decompres the file which is saved by "PureLVSORT_SaveListIcon"
With your PurePack.exe since you said it is the same compression, to see maybe how it is built and i could do parse it but i could not get it to work.
So a CSV will be cool feature.Thanks.
Ok, I will add it to the next version.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Pantcho!!
Enthusiast
Enthusiast
Posts: 538
Joined: Tue Feb 24, 2004 3:43 am
Location: Israel
Contact:

Post by Pantcho!! »

Thanks! :P
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update V4.10 (both libs : PB3.94 and PB4.0x)

Changes :
- new functions PureLVSORT_SaveListIconTXT() / PureLVSORT_LoadListIconTXT()
- new functions PureLVSORT_SetFilter() / PureLVSORT_ResetFilter()
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update V4.11 (both libs : PB3.94 and PB4.0x)

Changes :
- fixed bug : http://www.purebasic.fr/english/viewtopic.php?t=22967
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Sub-Routine
User
User
Posts: 82
Joined: Tue May 03, 2005 2:51 am
Location: Wheeling, Illinois, USA
Contact:

PureLVSort library

Post by Sub-Routine »

Thank you for all your great programs Gnozal!

I would like very much to use this library but it locks my program. I believe it is the Unicode setting I am using as the example also freezes when Unicode executable is checked. It would be great if you can find time to look into this.

Rand
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: PureLVSort library

Post by gnozal »

Sub-Routine wrote:Thank you for all your great programs Gnozal!

I would like very much to use this library but it locks my program. I believe it is the Unicode setting I am using as the example also freezes when Unicode executable is checked. It would be great if you can find time to look into this.

Rand
At the moment, TailBite (the tool used to compile the library) does not support unicode.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Sub-Routine
User
User
Posts: 82
Joined: Tue May 03, 2005 2:51 am
Location: Wheeling, Illinois, USA
Contact:

Re: PureLVSort library

Post by Sub-Routine »

gnozal wrote:At the moment, TailBite (the tool used to compile the library) does not support unicode.
Bummer :(

Thanks for looking.

Rand
User avatar
Flype
Addict
Addict
Posts: 1542
Joined: Tue Jul 22, 2003 5:02 pm
Location: In a long distant galaxy

Post by Flype »

gnozal wrote:Update V4.10 (both libs : PB3.94 and PB4.0x)

Changes :
- new functions PureLVSORT_SaveListIconTXT() / PureLVSORT_LoadListIconTXT()
- new functions PureLVSORT_SetFilter() / PureLVSORT_ResetFilter()
@gnozal

About 'Filter' features, can you have a look at this try :
PureLVSORT_AddOns.zip

It allow the programmer to use a usercallback (just like you do with the PureCOLOR_Callback).
Maybe you can implement it to PureLVSORT :?:
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
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Flype wrote:@gnozal

About 'Filter' features, can you have a look at this try :
PureLVSORT_AddOns.zip
It allow the programmer to use a usercallback
It was already on the todo list :wink: But I am on another project for the moment.

I thought adding something like this:
PureLVSORT_User_FilterListIcon(ListIcon.l, Column.l, Text.s, Event.l)

Nice and clean code btw, as usual. But I try to stay PB3.94 compatible (at least for the existing libraries), so no macros or optional parameters for me :D
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
popstatic
New User
New User
Posts: 4
Joined: Tue Mar 28, 2006 11:24 pm
Location: Paris, France.

Post by popstatic »

hi there,

Don't know if this is due to Tailbite for PB 4.0 but I just cannot compile a project using PureLVSORT with the option "ThreadSafe" checked, I got an error message:
---------------------------
PureBasic - Linker error
---------------------------
POLINK: error: Unresolved external symbol '_PB_StringBasePosition'.

POLINK: fatal error: 1 unresolved external(s).


---------------------------
OK
---------------------------
Works fine as soon as I deactivate threadsafe...
Have you seen that?
Think you could fix it?

Thanks for everything anyway;)
You're pretty when I'm drunk, and I'm pretty fuckin' drunk.
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

popstatic wrote:Don't know if this is due to Tailbite for PB 4.0 but I just cannot compile a project using PureLVSORT with the option "ThreadSafe" checked, I got an error message:
From the help file :
"This library exists in two versions :
- the standard version, located in %Purebasic%\PureLibraries\UserLibraries\ ;
- the thread-safe version, located in %Purebasic%\SubSystems\UserLibThreadSafe\PureLibraries\ .
In order to use this library in thread-safe mode (compiler option /THREAD), you have to enable the
subsystem 'UserLibThreadSafe' in the PB IDE, or add '/SUBSYSTEM UserLibThreadSafe' to the
PBCompiler arguments. In jaPBe, do nothing : it will automatically enable the 'UserLibThreadSafe'
subsystem to use the threadsafe versions of the installed userlibraries."
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply