Board index » delphi » Bug in Delphi 1.0 ???

Bug in Delphi 1.0 ???

Quote
jer...@orthos.math.rulimburg.nl (Jeroen Rutten) wrote:
>In Delphi 1.0 I can change the font name, style, size and color of the
>caption of a TLabel.
>However, if I try to do the same with the caption of a TButton,
>everything changes except the color.
>Is this a bug in Delphi 1.0 or a feature?
>Best regards,
>--
>Jeroen Rutten

I to can't get other colors than black :-( on the TButton, but on TBitBtn
( without a bitmap ? ) you can set the color to.

---------------------------------
      o_kj...@post4.tele.dk
---------------------------------

 

Re:Bug in Delphi 1.0 ???


Quote
Jeroen Rutten wrote:

> In Delphi 1.0 I can change the font name, style, size and color of the
> caption of a TLabel.

> However, if I try to do the same with the caption of a TButton,
> everything changes except the color.

> Is this a bug in Delphi 1.0 or a feature?

        Pretty sure it's neither - I think that "Button"
is a Windows concept, not a Delphi one, and I believe that
that's simply the way buttons work.

        In any case you can get the behavior you want by using
a BitBtn instead of a button.

--
David Ullrich

?his ?s ?avid ?llrich's ?ig ?ile
(Someone undeleted it for me...)

Re:Bug in Delphi 1.0 ???


In Delphi 1.0 I can change the font name, style, size and color of the
caption of a TLabel.

However, if I try to do the same with the caption of a TButton,
everything changes except the color.

Is this a bug in Delphi 1.0 or a feature?

Best regards,
--
Jeroen Rutten                                           |      ....
Maastricht University, Department of Mathematics        |     ' __
P.O. Box 616                                            |    /_/ /
6200 MD  Maastricht, The Netherlands                    |  _/   /
e-mail: jer...@orthos.math.unimaas.nl                   |  =__ (      
URL: http://www.cs.unimaas.nl/~math/jeroenr/jeroenr.htm |  ~  ||

Other Threads