🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.delphi.misc
Article #536

Re: How to create "backdrops" or "watermark" backgrounds in controls?

#536
From: Bj�rge S�ther
Date: Tue, 07 Mar 2000 00:00
24 lines
1746 bytes
AForest@bigfoot.com skrev i meldingen <8a2edd$8f0$1@nnrp1.deja.com>...
>Does anybody know how to create "backdrops" in Listboxes and edit boxes?
>
>What I am trying to create is e.g. a listbox where the background is a
>tiled bitmap, like in "Go!Zilla".
>
>I have been experimenting with the capture of the windows paint
>messages, but the results where not encouraging.
>

Hi !

The problem is, of course, to paint only a portion of a bitmap as one item is
to be repainted. What you could do, is creating another bitmap with the size
of the Listbox, and paint the bmp on this. As you draw one item, you use a
CopyRect or BitBlt call to copy the appropriate background portion into your
canvas. It has a cost, the extra size of the bmp in memory, but you won't be
able to avoid this anyway, I guess.

--
Bjoerge Saether
Consultant / Developer
Asker, Norway
bsaether.removethis@online.no (remove the obvious)
Technical Details
Message-ID: <vA4x4.8552$6b1.141731@news1.online.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8a2edd$8f0$1@nnrp1.deja.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1091e5,8e32ef76e97423e6
X-Google-Attributes: gid1091e5,public
X-Google-Thread: 10baee,8e32ef76e97423e6
X-Google-Attributes: gid10baee,public
From: "Bj�rge S�ther" <REMOVE_bsaether@online.no>
Subject: Re: How to create "backdrops" or "watermark" backgrounds in controls?
Date: 2000/03/07
Message-ID: <vA4x4.8552$6b1.141731@news1.online.no>
X-Deja-AN: 594200089
References: <8a2edd$8f0$1@nnrp1.deja.com>
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
X-Complaints-To: news-abuse@online.no
X-Trace: news1.online.no 952423835 130.67.7.76 (Tue, 07 Mar 2000 11:10:35 MET)
Organization: Telenor Online Public Access
NNTP-Posting-Date: Tue, 07 Mar 2000 11:10:35 MET
Newsgroups: comp.lang.pascal.delphi.misc,borland.public.delphi.winapi