🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to set icon and caption of windows taskbar button?

#6238
From: Simon Elliott
Date: Sat, 28 May 2005 11:22
17 lines
1657 bytes
On 27/05/2005, Remy Lebeau (TeamB) wrote:

> > Now I'd like to gove the taskbar button its own icon and
> > caption - possibly different from the ones shown by the
> > form. How do I do this?

> The Caption of the Taskbar Button is always the same as the Form's
> Caption, and the Icon is the same as the Form's Icon.  You cannot
> specify a different Caption and Icon that are just for the button
> alone.  They have to be applied to the Form as well.

OK. I vaguely recalled from the olden days of Petzold that there was a
way of drawing on the taskbar button's canvas, but it was so long ago
that my memory could be a bit flaky...

-- 
Simon Elliott    http://www.ctsn.co.uk
Technical Details
Message-ID: <42985468$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42972464$1@newsgroups.borland.com> <429753ca$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d0933eb43b54b0eb
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Simon Elliott" <Simon at ctsn.co.uk>
Subject: Re: How to set icon and caption of windows taskbar button?
Newsgroups: borland.public.cppbuilder.nativeapi
Reply-To: "Simon Elliott" <News at ctsn.co.uk>
References: <42972464$1@newsgroups.borland.com> <429753ca$1@newsgroups.borland.com>
User-Agent: XanaNews/1.17.4.1
NNTP-Posting-Host: 82.152.41.49
Message-ID: <42985468$1@newsgroups.borland.com>
Date: 28 May 2005 04:22:16 -0700
X-Trace: newsgroups.borland.com 1117279336 82.152.41.49 (28 May 2005 04:22:16 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!newshub.sdsu.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newshosting.com!nx02.iad01.newshosting.com!diablo.voicenet.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail