Board index » delphi » Changing the Background colour of a Button

Changing the Background colour of a Button

Is there a way of changing the background colour of a TButton, or is it
just one of those window colors that you cannot change within an
applications. I am also having problems changing the Text color of a
Button. The Font Style, size etc ar all fine, as is the text color of
BitBtn.

Thankyou

Carwyn

 

Re:Changing the Background colour of a Button


Quote
Carwyn Lloyd-Jones wrote:

> Is there a way of changing the background colour of a TButton, or is it
> just one of those window colors that you cannot change within an
> applications. I am also having problems changing the Text color of a
> Button. The Font Style, size etc ar all fine, as is the text color of
> BitBtn.

> Thankyou

> Carwyn

I don't think it's possible (in any easy manner).

--
Mike
Micha...@pantheoninc.com

Re:Changing the Background colour of a Button


Quote
Michael Grunder wrote:

> Carwyn Lloyd-Jones wrote:

> > Is there a way of changing the background colour of a TButton, or is it
> > just one of those window colors that you cannot change within an
> > applications. I am also having problems changing the Text color of a
> > Button. The Font Style, size etc ar all fine, as is the text color of
> > BitBtn.

> > Thankyou

> > Carwyn

> I don't think it's possible (in any easy manner).

> --
> Mike
> Micha...@pantheoninc.com

It isn't completely straightforward. There is a  bit button already
designed that will change colour: check out the acgbtn.zip  by
Andy Ghinaudo on the Delphi Super Page.

--
James Thomas
Social Science Research Unit
Institute of Education
18 Woburn Square
London WC1H 0NS

tel: 0171 612 6844
fax: 0171 612 6400
j.tho...@ioe.ac.uk

Re:Changing the Background colour of a Button


Quote
Carwyn Lloyd-Jones <mm3a4...@swansea.ac.uk> wrote:
>Is there a way of changing the background colour of a TButton, or is it
>just one of those window colors that you cannot change within an
>applications. I am also having problems changing the Text color of a
>Button. The Font Style, size etc ar all fine, as is the text color of
>BitBtn.
>Thankyou
>Carwyn

The button-color  is globally defined by Windows. You can change it in
your Windows configuration (for all running applications and Windows
itself)
Look at http://www.nedernet.nl/~braincom/index.html
for a freeware 16 bits solution for your problem.

Greetings
Kees

Other Threads