🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.aspdotnet.components.using
Article #178

Re: change color of control

#178
From: Q Correll
Date: Sun, 14 May 2006 15:48
24 lines
1334 bytes
Man,

| How can i change color of textbox, button etc.
| I try following code
|  Button1.BorderColor:='red';
| 
| but i get following error
| 
| [Pascal Error] index.pas(56): E2010 Incompatible types: 'Color' and
| 'string'
| 
| how can i convert string to color?

Colors are special values that begin with "cl"  try clRed  (not a
string).

 Button1.BorderColor := clRed;

-- 
Q

05/14/2006 08:47:27

XanaNews Version 1.17.5.7  [Q's salutation mod]
Technical Details
Message-ID: <4467515a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!ndsoftware.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4466fc16$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 21665a,881f6383bba7ce52
X-Google-Attributes: gid21665a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Q Correll" <qcorrell@pacbell.net>
Subject: Re: change color of control
Newsgroups: borland.public.delphi.aspdotnet.components.using
References: <4466fc16$1@newsgroups.borland.com>
Organization: TESSERAQ
User-Agent: XanaNews/1.17.5.7
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
NNTP-Posting-Host: 209.233.28.48
Message-ID: <4467515a$1@newsgroups.borland.com>
Date: 14 May 2006 08:48:42 -0700
X-Trace: newsgroups.borland.com 1147621722 209.233.28.48 (14 May 2006 08:48:42 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news.glorb.com!ndsoftware.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail