PureCOLOR library : coloring gadgets (and much 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 »

Rook Zimbabwe wrote:This is what it looks like now. I can stand the ellipses on that button.
Good.
Just a note : the lines are only broken between words, and there is not enough space to hold 'BRUSCHETTA' (whatever this may be) on one line on your buttons (PB does break the words, I prefer the ellipses).
You may choose another font or font size. Or use bigger buttons :wink:
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Bruschetta is an Italian Nacho
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

I am probably using the wrong UserLib, but if I have enabled Use XP Skins in the compiler Options... is that going to change the look of the Colored buttons as well?

:D
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Rook Zimbabwe wrote:I am probably using the wrong UserLib, but if I have enabled Use XP Skins in the compiler Options... is that going to change the look of the Colored buttons as well? :D
The PureCOLOR colored buttons aren't like ordinary buttons (I add the #BS_BITMAP style and draw on the image) : they will loose the XP skin look if colored.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Post by Rook Zimbabwe »

Had you looked in to using these (form MS API documentation)?
COLOR_BTNFACE
The color of a button's face.
COLOR_BTNHIGHLIGHT
The color of a button's highlight area.
COLOR_BTNSHADOW
The color of a button's shadow area.
COLOR_BTNTEXT
The color of a button's text
I got them here:
http://www.xs4all.nl/~rjg70/vbapi/ref/w/wndclass.html

do they use hex value or rgb?
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Rook Zimbabwe wrote:Had you looked in to using these (form MS API documentation)?
COLOR_BTNFACE
The color of a button's face.
COLOR_BTNHIGHLIGHT
The color of a button's highlight area.
COLOR_BTNSHADOW
The color of a button's shadow area.
COLOR_BTNTEXT
The color of a button's text
The default colors like #COLOR_BTNTEXT / #COLOR_BTNFACE (using GetSysColor_()) are used by the PureCOLOR coloring functions when #PureCOLOR_SystemColor is used as color value.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Marco2007
Enthusiast
Enthusiast
Posts: 648
Joined: Tue Jun 12, 2007 10:30 am
Location: not there...

Post by Marco2007 »

Does the lib work with 4.20 final?
PureBasic for Windows
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Marco2007 wrote:Does the lib work with 4.20 final?
It seems so.
Report any problem if it doesn't.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
GG
Enthusiast
Enthusiast
Posts: 266
Joined: Tue Jul 26, 2005 12:02 pm
Location: Lieusaint (77), France

Post by GG »

GG wrote:Any chance to have a PureColor library for PB 4.20 ? I have some strange behaviour with PB4.20b2 and PureColor 4.10 with PureColor_Version() : When I use Purecolor_Version() with messagerequester, openwindow, or others, text which is before purecolor_version is not printed.

Example :
MessageRequester("Purecolor 4.10","PureColor : "+PureCOLOR_Version()+" - "+" Tag : "+Date$+" - "+dbpath$,#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered|#PB_Window_SizeGadget) : doesn't print "PureColor : "
MessageRequester("Purecolor 4.10","PureColor : "+" - "+" Tag : "+Date$+" - "+dbpath$,#PB_Window_MinimizeGadget|#PB_Window_ScreenCentered|#PB_Window_SizeGadget) : It's OK.
I'm still having the problem with PB 4.20 final and 14.03 PureColor library.

MessageRequester("Coucou","PureColor : "+PureCOLOR_Version())
prints : "coucou" on the title, that's ok.
But instead of printing : "PureColor 14.03", i've got only : "14.03".

I'm under XP SP2.
Purebasic 6.12 64 bits - Windows 11 Pro 64 bits 23H2
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

GG wrote:I'm still having the problem with PB 4.20 final and 14.03 PureColor library.

MessageRequester("Coucou","PureColor : "+PureCOLOR_Version())
prints : "coucou" on the title, that's ok.
But instead of printing : "PureColor 14.03", i've got only : "14.03".

I'm under XP SP2.
Your example is ok with PB4.10.
I will build a version for PB4.20 with the latest tailbite fix.
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 (PB4.20 only)

Changes :
Recompiled library with PB4.20 and latest tailbite fix.
Link : http://freenet-homepage.de/gnozal/PureCOLOR___.zip
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
GG
Enthusiast
Enthusiast
Posts: 266
Joined: Tue Jul 26, 2005 12:02 pm
Location: Lieusaint (77), France

Post by GG »

Thanks gnozal, it works great now :)
Is it normal the actual 14.03 release number hasn't changed since the previous release ?
Purebasic 6.12 64 bits - Windows 11 Pro 64 bits 23H2
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

GG wrote:Is it normal the actual 14.03 release number hasn't changed since the previous release ?
Yes, since the library code hasn't changed (it's the same for PB4.0x/PB4.1x/PB4.2x).
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

PureColor is now bugged with the updated Listicongadgets!

Code: Select all

PureCOLOR_SetGadgetColorEx(#Gadget_main_listtrab, #PureCOLOR_SystemColor,#PureCOLOR_SystemColor, RGB(255, 255, 223), #PureCOLOR_LV_AlternateColors)
Disables gridlines!!!
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Post by c4s »

A bug I realized in the PB 4.20 version (PC 14.03):
I give a ButtonGadget a color with PureCOLOR_SetButtonColor() (with the
first BackColor option). Then I disable the button and it should be gray but it
is white now (in disabled state). After that I enable the button again and now
the ButtonGadget should have the color I set before but it's sometimes gray
or white and definitly not the color I want ...

The PB 4.10 worked totally correct... (disabled color = gray; enabling gives
the correct color back!)


Please try to fix it ... because PureCOLOR is a very excellent library Image
If any of you native English speakers have any suggestions for the above text, please let me know (via PM). Thanks!
Post Reply