hex Color Value (string) to TColor
From: Epema (c.epema_at_chello.nl)
Date: 12/24/03
- Next message: Charles Appel: "Re: hex Color Value (string) to TColor"
- Previous message: Rob Kennedy: "Re: Package download"
- Next in thread: Charles Appel: "Re: hex Color Value (string) to TColor"
- Reply: Charles Appel: "Re: hex Color Value (string) to TColor"
- Reply: Henry Bartlett: "Re: hex Color Value (string) to TColor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 24 Dec 2003 11:00:38 GMT
Hi,
I tried to figure out how to read a string value into
the color property of a component:
strColor:='$FFFFFF';
Label1.Color:=strColor;
=Error: Incompatible Types TColor and String;
Due to the objective of my application I cannot read the Color Value from a
ColorBox component directly into Label1.Color...So,
Label1.Color:=ColorBox.Selected; is not allowed...
Does anyone have a workaround for this problem?
Kind regards, Kees Epema
- Next message: Charles Appel: "Re: hex Color Value (string) to TColor"
- Previous message: Rob Kennedy: "Re: Package download"
- Next in thread: Charles Appel: "Re: hex Color Value (string) to TColor"
- Reply: Charles Appel: "Re: hex Color Value (string) to TColor"
- Reply: Henry Bartlett: "Re: hex Color Value (string) to TColor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]