Article View: borland.public.cppbuilder.nativeapi
Article #1726Re: Clipboard operation w/ Icons
From: Remy Lebeau (TeamB)
Date: Fri, 22 Jun 2007 17:44
Date: Fri, 22 Jun 2007 17:44
20 lines
1651 bytes
1651 bytes
"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:hlvn73df61gagpvhrug27sc7plob3ka94o@4ax.com...
> I thought it contained a TBitmap.
The OP said:
"I've got a TImage component (imgMonitor below) that is displaying
an icon via ExtractIcon()."
His original code was completely wrong, as I already pointed out to
him. There was no need to try to convert the TImage over to a TBitmap
inside the TImage. He can preserve the original TIcon as-is and still
copy a temporary TBitmap to the clipboard. If he corrects his code to
do that, then calling Clipboard()->Assign() while the TImage still
holds a TIcon will not work, but it doesn't need to anyway.
Gambit
Technical Details
Message-ID:
<467c0aa3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<467aa666$1@newsgroups.borland.com> <cmbl73l030v30mkcmtrbqccjcofs1flmsc@4ax.com> <467ab457$1@newsgroups.borland.com> <hlvn73df61gagpvhrug27sc7plob3ka94o@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,94c464a24f7a5b5e X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <467aa666$1@newsgroups.borland.com> <cmbl73l030v30mkcmtrbqccjcofs1flmsc@4ax.com> <467ab457$1@newsgroups.borland.com> <hlvn73df61gagpvhrug27sc7plob3ka94o@4ax.com> Subject: Re: Clipboard operation w/ Icons Date: Fri, 22 Jun 2007 10:44:18 -0700 Lines: 22 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.82.252.126 Message-ID: <467c0aa3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1182534307 75.82.252.126 (22 Jun 2007 10:45:07 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail