🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Drawing an icon

#11434
From: Malcolm Smith
Date: Tue, 10 Feb 2004 23:43
35 lines
1891 bytes
I initially used TCanvas::Draw but got the same results.

-- 
Malcolm Smith
MJ Freelancing
http://www.mjfreelancing.com



"Remy Lebeau (TeamB)" <gambit47.no.spam@no.spam.yahoo.com> wrote in message
news:402969d3$1@newsgroups.borland.com...
>
> "Malcolm Smith" <m.smith@comvision.net.au> wrote in message
> news:40296666@newsgroups.borland.com...
>
> > ::DrawIcon(imgIcon->Canvas->Handle, 0, 0, Icon->Handle);
>
> Why not just use TCanvas::Draw() instead?
>
>     TIcon *Icon = new Graphics::TIcon;
>     Icon->Handle = ::LoadIcon(0, IDI_QUESTION);
>     imgIcon->Canvas->Draw(0, 0, Icon);
>     delete Icon;
>
> > I tried drawing on the form canvas and nothing was shown.
>
> When exactly did you do the drawing?  You can only use the form's Canvas
for
> anything meaningful from within the OnPaint event, if you are not already
> doing so.
>
>
> Gambit
>
>
Technical Details
Message-ID: <40296d83@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <40296666@newsgroups.borland.com> <402969d3$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,2e2fdffa598d0cc5
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-02-10 16:08:34 PST
Reply-To: "Malcolm Smith" <m.smith@comvision.net.au>
From: "Malcolm Smith" <m.smith@comvision.net.au>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40296666@newsgroups.borland.com> <402969d3$1@newsgroups.borland.com>
Subject: Re: Drawing an icon
Date: Wed, 11 Feb 2004 10:43:28 +1100
Lines: 37
Organization: Comvision Pty Ltd
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.51.22.164
Message-ID: <40296d83@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1076456835 203.51.22.164 (10 Feb 2004 15:47:15 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail