Discussion:
BitBtn
(too old to reply)
Kresten Tolstrup
2008-02-22 11:03:10 UTC
Permalink
Hello

How can a BitBtn be showed with a background color?
I have tried with: pRX->Brush->Color = clRed, where pRX is a pointer to the type TBitBtn, but it doesn't work, what is wrong?

Best Regards
Kresten
Remy Lebeau (TeamB)
2008-02-22 18:52:52 UTC
Permalink
Post by Kresten Tolstrup
How can a BitBtn be showed with a background color?
It can't.
Post by Kresten Tolstrup
I have tried with: pRX->Brush->Color = clRed
TBitBtn ignores that.
Post by Kresten Tolstrup
what is wrong?
Nothing. TBitBtn is simply not designed to allow user-defined colors.
Neither is TButton, for that matter.


Gambit
Kresten Tolstrup
2008-02-26 10:03:33 UTC
Permalink
Post by Remy Lebeau (TeamB)
Nothing. TBitBtn is simply not designed to allow user-defined colors.
Neither is TButton, for that matter.
Gambit
Thanks!
Do you know if there is a 3-party button, where user defined colors are allowed.

Kresten
Asger Joergensen
2008-02-26 11:11:30 UTC
Permalink
Hi Kresten
Post by Kresten Tolstrup
Thanks!
Do you know if there is a 3-party button, where user defined colors are allowed.
Have a look at Torry

http://www.torry.net/quicksearchd.php?String=button+color&Title=Yes

Kind regards
Asger
Kresten Tolstrup
2008-08-05 13:38:07 UTC
Permalink
Post by Asger Joergensen
Have a look at Torry
http://www.torry.net/quicksearchd.php?String=button+color&Title=Yes
Kind regards
Asger
Thank for the answer, I'm sorry for the long delay.
I have downloaded "ButtonWithColor", but when I try to add and compile the component, I get a lot of linker errors, they are all from the module Outline. Do I need to add a bpi file under the Requires, in the Project Manager window?
I have used File->New->Other->Component, and then selected the .pas file for the button, and used TButten as base class.

Best Regards
Kresten
Kresten Tolstrup
2008-08-05 13:38:29 UTC
Permalink
Post by Asger Joergensen
Have a look at Torry
http://www.torry.net/quicksearchd.php?String=button+color&Title=Yes
Kind regards
Asger
Thank for the answer, I'm sorry for the long delay.
I have downloaded "ButtonWithColor", but when I try to add and compile the component, I get a lot of linker errors, they are all from the module Outline. Do I need to add a bpi file under the Requires, in the Project Manager window?
I have used File->New->Other->Component, and then selected the .pas file for the button, and used TButten as base class.

Best Regards
Kresten

Loading...