Article View: borland.public.cppbuilder.nativeapi
Article #1136Re: Draw patern like scrollbar background
From: Asger Jørgensen
Date: Sat, 27 Oct 2007 17:35
Date: Sat, 27 Oct 2007 17:35
34 lines
1936 bytes
1936 bytes
Hi Bob Gonder In article <8qj6i3lpjsp7rs3vjguhd87ek7pp2i1o8j@4ax.com> notbg@notmindspring.invalid Bob Gonder says: > Asger Jørgensen wrote: > > >I need to draw a patern like scrollbar background > > Otherwise, first create a bitmap for it. > You might be able to use MSPAINT to create an 8x8 bitmap. PatBmp = new Graphics::TBitmap(); PatBmp->Height = 2; PatBmp->Width = 2; PatBmp->Canvas->Pixels[0][0] = clBtnHighlight; PatBmp->Canvas->Pixels[0][1] = clBtnFace; PatBmp->Canvas->Pixels[1][0] = clBtnFace; PatBmp->Canvas->Pixels[1][1] = clBtnHighlight; Canvas->Brush->Bitmap = PatBmp; Canvas->FillRect(PaintRect); Thanks Bob This works quite nicely.:-) Do You know if it would be faster if i use a bitmap size 8 x 8, not that this is notisable slow (on my machine) Thanks again Kind regards Asger
Technical Details
Message-ID:
<MPG.218d956796cce9ec989886@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<MPG.218cbdf0c1ed5d51989885@newsgroups.borland.com> <8qj6i3lpjsp7rs3vjguhd87ek7pp2i1o8j@4ax.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,60d83adf9925505f X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,UTF8 From: Asger Jørgensen <junk@Asger-P.dk> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Draw patern like scrollbar background Date: Sat, 27 Oct 2007 19:35:53 +0200 Message-ID: <MPG.218d956796cce9ec989886@newsgroups.borland.com> References: <MPG.218cbdf0c1ed5d51989885@newsgroups.borland.com> <8qj6i3lpjsp7rs3vjguhd87ek7pp2i1o8j@4ax.com> Organization: Asger-P MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable User-Agent: MicroPlanet-Gravity/2.70.2067 NNTP-Posting-Host: 83.73.201.25 X-Trace: newsgroups.borland.com 1193506540 83.73.201.25 (27 Oct 2007 10:35:40 -0700) Lines: 34 Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!newsgate.cistron.nl!xs4all!feeder.news-service.com!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail