PureCOLOR library : coloring gadgets (and much more)

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

Moderator: gnozal

User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: PureCOLOR library : coloring gadgets (and much more)

Post by DoubleDutch »

Hopefully 5.20 versions of his libs will be available soon. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
mesozorn
Enthusiast
Enthusiast
Posts: 171
Joined: Fri Feb 20, 2009 2:23 am

Re: PureCOLOR library : coloring gadgets (and much more)

Post by mesozorn »

I have used PureCOLOR in the past successfully, however presently I'm trying to use the correct version with PB 4.60, and am getting a PO Linker error upon compile. Any advice or guidance?
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: PureCOLOR library : coloring gadgets (and much more)

Post by IdeasVacuum »

I'm sure we can help but we need to know the exact POLINK error reported. Usually it is either because the lib version does not match the PB version or the sub-system has not been input (e.g. UserLibUnicodeThreadSafe) or that subsystem is incompatible with another PB setting.

Note that PB5.xx has a little bit more colouring ability, it might already cover your requirements without needing a 3rd Party Lib.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
mesozorn
Enthusiast
Enthusiast
Posts: 171
Joined: Fri Feb 20, 2009 2:23 am

Re: PureCOLOR library : coloring gadgets (and much more)

Post by mesozorn »

IdeasVacuum wrote:I'm sure we can help but we need to know the exact POLINK error reported. Usually it is either because the lib version does not match the PB version or the sub-system has not been input (e.g. UserLibUnicodeThreadSafe) or that subsystem is incompatible with another PB setting.

Note that PB5.xx has a little bit more colouring ability, it might already cover your requirements without needing a 3rd Party Lib.
The error message is :"Unresolved external symbol: _PB_StringBasePosition" and it is in fact only occurring when I have Threadsafe Executable mode enabled (which I need for my program). I may try moving it over to the latest PB version.. I've just stuck with 4.60 so far because I've tested fully under it, and didn't want to take the chance something is different/broken under 5.2 that I don't realize, and someone else discovers for me later on down the line.

EDIT: Enabling the UserLibThreadSafe setting in the PB IDE compiler options did the trick and suppressed the error message successfully. I am still expeiencing a minor quirk where an enlarged font on a ButtonGadget is not properly vertically centered on the gadget when using PureCOLOR, but there is probably a solution to this too...
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: PureCOLOR library : coloring gadgets (and much more)

Post by IdeasVacuum »

Well, possibly the best work-around for the button is to use a ButtonImageGadget().
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
mesozorn
Enthusiast
Enthusiast
Posts: 171
Joined: Fri Feb 20, 2009 2:23 am

Re: PureCOLOR library : coloring gadgets (and much more)

Post by mesozorn »

IdeasVacuum wrote:Well, possibly the best work-around for the button is to use a ButtonImageGadget().
That may in fact still be the most viable option, since PB 5.2 still does not natively provide for easily colouring ButtonGadgets, and the PureCOLOR library has the quirk that I mentioned regarding vertical misplacement of larger-font text. It seems to assume that the default system font will always be used, and decides the Y-coordinate based on that value, without being able to check whether a different, larger font has been brought into play. The #SS_CENTERIMAGE flag doesn't help or behave as expected in this scenario either.

Using a ButtonImageGadget to simulate coloured text is probably indeed the easiest approach, though a little cumbersome in instances where the displayed text needs to change back and forth between a few variants.
User avatar
minimy
Enthusiast
Enthusiast
Posts: 344
Joined: Mon Jul 08, 2013 8:43 pm

Re: PureCOLOR library : coloring gadgets (and much more)

Post by minimy »

Hi, I have a little problem with Explorergadget..
I have a PureCOLOR_SetCellColorCallback(Window, @MyCellColorCallback()) to chenge listicon colors, fonts.. and work verywell.
But the explorergadget no change the font because is influded by PureCOLOR_SetCellColorCallback(Window, @MyCellColorCallback())..
Is this a bug, or only happend to me?. Can helpme?
Thanks for the library Gnozal, is really fantastic! :D
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
falsam
Enthusiast
Enthusiast
Posts: 630
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: PureCOLOR library : coloring gadgets (and much more)

Post by falsam »

The website is down. Is anybody can upload Pure Color? Thank :)

➽ Windows 11 64-bit - PB 6.0 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect.
User avatar
Bisonte
Addict
Addict
Posts: 1226
Joined: Tue Oct 09, 2007 2:15 am

Re: PureCOLOR library : coloring gadgets (and much more)

Post by Bisonte »

Archiv Search Done :

PureColor PB 3.94
PureColor PB 4.60
PureColor PB 5.00

And Gnozal-like : all x86. other versions are not avaible at my archiv.

Edit: Links Changed to RSBasic Backup Site
Last edited by Bisonte on Wed May 04, 2016 9:30 am, edited 1 time in total.
PureBasic 6.04 LTS (Windows x86/x64) | Windows10 Pro x64 | Asus TUF X570 Gaming Plus | R9 5900X | 64GB RAM | GeForce RTX 3080 TI iChill X4 | HAF XF Evo | build by vannicom​​
English is not my native language... (I often use DeepL to translate my texts.)
User avatar
falsam
Enthusiast
Enthusiast
Posts: 630
Joined: Wed Sep 21, 2011 9:11 am
Location: France
Contact:

Re: PureCOLOR library : coloring gadgets (and much more)

Post by falsam »

Thanks for your help bisonte :)

➽ Windows 11 64-bit - PB 6.0 x64 - AMD Ryzen 7 - NVIDIA GeForce GTX 1650 Ti

Sorry for my bad english and the Dunning–Kruger effect.
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: PureCOLOR library : coloring gadgets (and much more)

Post by IdeasVacuum »

The website is probably down because Gnozal is no longer supporting his libs (Generally not working with latest version PB)
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Vera
Addict
Addict
Posts: 858
Joined: Tue Aug 11, 2009 1:56 pm
Location: Essen (Germany)

Re: PureCOLOR library : coloring gadgets (and much more)

Post by Vera »

Further versions can be found on RSBasic's backup page.
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: PureCOLOR library : coloring gadgets (and much more)

Post by luis »

IdeasVacuum wrote:The website is probably down because Gnozal is no longer supporting his libs
http://gnozal.ucoz.com/
Website blocked

Blocking reason: Malware
Download-Link: http://gnozal.ucoz.com/PureLVSORT_510.zip
Antivirus-Result: Malware.QVM17.Gen

If you are the owner of the website, you may contact the uCoz Support Team via the Control Panel of your website to find out the details.
No comment ...
"Have you tried turning it off and on again ?"
A little PureBasic review
le_magn
Enthusiast
Enthusiast
Posts: 133
Joined: Wed Aug 24, 2005 12:11 pm
Location: Italia
Contact:

Re: PureCOLOR library : coloring gadgets (and much more)

Post by le_magn »

Hi, Purecolor work correct with PB 5.31? or what is the latest version of PB under purecolor work correct?
Image
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: PureCOLOR library : coloring gadgets (and much more)

Post by IdeasVacuum »

I believe the most recent version of PB supported by PureColor was 5.10 32bit.
There seems very little point in using it now. Some of the capability of PureColor is now in PB, there are work-arounds for the rest on the forum. Perhaps the most obvious is colouring buttons, but you can use a ButtonImageGadget() instead.
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
Post Reply