Page 1 of 1

Chaning the font color of a button gadget

Posted: Thu Jul 15, 2010 1:02 am
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!

Re: Chaning the font color of a button gadget

Posted: Thu Jul 15, 2010 1:20 am
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

Re: Chaning the font color of a button gadget

Posted: Thu Jul 15, 2010 1:47 am
by PB

Re: Chaning the font color of a button gadget

Posted: Thu Jul 15, 2010 6:55 am
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!

Re: Chaning the font color of a button gadget

Posted: Thu Jul 15, 2010 10:10 am
by srod
ArcticFox recently did some work on this kind of thing... http://www.purebasic.fr/english/viewtop ... 12&t=42505