Article View: borland.public.cppbuilder.nativeapi
Article #1203Re: Setting a window dimensions larger than the screen display
From: Mark Jacobs
Date: Sat, 06 Oct 2007 15:27
Date: Sat, 06 Oct 2007 15:27
27 lines
1971 bytes
1971 bytes
"Asger J๏ฟฝrgensen" <junk@Asger-P.dk> wrote in message news:MPG.2170cc41e12c533989837@newsgroups.borland.com... > It should probably be: > > Chart->Canvas->Canvas->Handle > > since the first canvas is a special 3d canvas > acording to the help files. The help files are incorrect. The only real TCanvas type of canvas I can access on a TChart is something called ReferenceCanvas. However, if I have Chart3 with width and height beyond the screen dimensions, and then do :- Graphics::TBitmap *mjbmp=new Graphics::TBitmap(); TRect rc=Rect(0,0,Chart3->Width-1,Chart3->Height-1); mjbmp->HandleType=bmDIB; mjbmp->Height=Chart3->Height; mjbmp->Width=Chart3->Width; mjbmp->Canvas->CopyRect(rc,Chart3->Canvas->ReferenceCanvas,rc); to copy the chart picture to my bitmap, anything off-screen is chopped off! I am still stumped. -- Mark Jacobs www.jacobsm.com
Technical Details
Message-ID:
<4707a985$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<470500be$1@newsgroups.borland.com> <4705035c@newsgroups.borland.com> <47051a6f@newsgroups.borland.com> <MPG.216f44f7970fe74b989836@newsgroups.borland.com> <4706249b$1@newsgroups.borland.com> <MPG.2170cc41e12c533989837@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ed0d9ed942d9e6f4 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII From: "Mark Jacobs" <mark@jacobsm.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <470500be$1@newsgroups.borland.com> <4705035c@newsgroups.borland.com> <47051a6f@newsgroups.borland.com> <MPG.216f44f7970fe74b989836@newsgroups.borland.com> <4706249b$1@newsgroups.borland.com> <MPG.2170cc41e12c533989837@newsgroups.borland.com> Subject: Re: Setting a window dimensions larger than the screen display Date: Sat, 6 Oct 2007 16:27:59 +0100 Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 195.137.123.182 Message-ID: <4707a985$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1191684485 195.137.123.182 (6 Oct 2007 08:28:05 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail