Chaning the font color of a button gadget

Windows specific forum
User avatar
GWarner
Enthusiast
Enthusiast
Posts: 605
Joined: Fri Jul 24, 2009 1:34 pm
Location: USA

Chaning the font color of a button gadget

Post by GWarner »

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!
IdeasVacuum
Always Here
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

Post by IdeasVacuum »

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
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Chaning the font color of a button gadget

Post by PB »

I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
GWarner
Enthusiast
Enthusiast
Posts: 605
Joined: Fri Jul 24, 2009 1:34 pm
Location: USA

Re: Chaning the font color of a button gadget

Post by GWarner »

IdeasVacuum wrote:It's hard to say what a 'standard' button really is.
Sorry, by standard button I meant the native ButtonGadget.

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!
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: Chaning the font color of a button gadget

Post by srod »

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.
Post Reply