🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12376

Button color

#12376
From: Andre Letourneau
Date: Thu, 04 Dec 2003 22:41
15 lines
1216 bytes
Hi everyone,
I'm trying to change the color of a BitBtn at runtime using:


   Button1 -> Brush -> Color = clRed;
   Button1 -> Brush ->Style = bsSolid;
   Button1 -> Refresh();

but the color still grey.

What can I do to change the color as needed at runtime ???


Thanks...
Andre
Technical Details
Message-ID: <3fcfb816$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-05!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c19ae452cac8e99
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-04 15:12:07 PST
From: "Andre Letourneau" <aletourneau@tqs.qc.ca>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Button color
Date: Thu, 4 Dec 2003 17:41:26 -0500
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 199.243.241.122
Message-ID: <3fcfb816$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1070577686 199.243.241.122 (4 Dec 2003 14:41:26 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-05!sn-xit-08!supernews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail