For a project I am working on I need to have buttons with their text in different colors (only one color per button though).
Is this possible?
I know I could di it with ButtonImage gadgets but would prefer to use standard buttons.
Thanks!
Chaning the font color of a button gadget
-
IdeasVacuum
- Always Here

- Posts: 6426
- Joined: Fri Oct 23, 2009 2:33 am
- Location: Wales, UK
- Contact:
Re: Chaning the font color of a button gadget
Hi
It's hard to say what a 'standard' button really is. If you want your application to have a WinXP appearance for example (Compiler setting 'Enable XP skin support'), you are effectively limited by that schema.
Gnozal has defined the Pure Color library for PB which is probably what you need:
http://gnozal.ucoz.com/PureCOLOR_.htm
It's hard to say what a 'standard' button really is. If you want your application to have a WinXP appearance for example (Compiler setting 'Enable XP skin support'), you are effectively limited by that schema.
Gnozal has defined the Pure Color library for PB which is probably what you need:
http://gnozal.ucoz.com/PureCOLOR_.htm
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
If it sounds simple, you have not grasped the complexity.
Re: Chaning the font color of a button gadget
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
"PureBasic won't be object oriented, period" - Fred.
Re: Chaning the font color of a button gadget
Sorry, by standard button I meant the native ButtonGadget.IdeasVacuum wrote:It's hard to say what a 'standard' button really is.
I'll try gnozal's PureCOLOR, as you said that appears to be just what I need.
I knew I had seen it mentioned somewhere someone had writen something like what I'm looking for in a user library but couldn't recall where.
They say memory is the first thing to go when you get old... :roll:
Thanks!
Re: Chaning the font color of a button gadget
ArcticFox recently did some work on this kind of thing... http://www.purebasic.fr/english/viewtop ... 12&t=42505
I may look like a mule, but I'm not a complete ass.

