🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Button color

#12374
From: Rodolfo Frino
Date: Thu, 04 Dec 2003 23:09
31 lines
1801 bytes
You will find two methods here:

1) With the SGColorSpeedButton (Probably the most complete Button of all)
http://www.geocities.com/rodolfofrino/SGColorSpeedButton.html

2) With panels
http://www.geocities.com/rodolfofrino/ColouredButtons.html
http://www.geocities.com/rodolfofrino/ColouredButtonsClass.html

Rodolfo

"Andre Letourneau" <aletourneau@tqs.qc.ca> wrote in message
news:3fcfb816$1@newsgroups.borland.com...
> 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: <3fcfbe97@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fcfb816$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,c19ae452cac8e99,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-04 15:12:05 PST
From: "Rodolfo Frino" <MenInBlack@nowhere.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fcfb816$1@newsgroups.borland.com>
Subject: Re: Button color
Date: Fri, 5 Dec 2003 10:09:29 +1100
Lines: 33
Organization: Men In Black
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 203.206.16.193
Message-ID: <3fcfbe97@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1070579351 203.206.16.193 (4 Dec 2003 15:09:11 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-05!sn-xit-08!supernews.com!priapus.visi.com!orange.octanews.net!news.octanews.net!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail