🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Printer problem with Brush hatch styles

#6353
From: Peter Clarke
Date: Wed, 18 May 2005 14:50
17 lines
1656 bytes
Hi everyone
My application draws rectangles and other polygons which can be filled using 
the various standard hatch styles such as diagonal lines, cross, vertical 
lines etc. To set the hatch colours and styles, I use the 
Canvas->Brush->Color and Canvas->Brush->Style properties. All is fine when 
displayed on the monitor, but when printing, most printers draw the space 
between the hatch lines in black, I want the spaces left white or 
transparent.

I thought this problem may be solved by playing with the background 
colour/style by using the Windows GDI functions SetBkColor() and 
SetBkStyle(), but nothing I do has any result.

Can anyone help me get the printing right.

Regards
Peter 
Technical Details
Message-ID: <428b5619@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7e90755ad1182f61,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Peter Clarke" <pbclarke@btopenworld.com>
From: "Peter Clarke" <pbclarke@btopenworld.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Printer problem with Brush hatch styles
Date: Wed, 18 May 2005 15:50:01 +0100
Lines: 19
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 81.131.136.11
Message-ID: <428b5619@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1116427801 81.131.136.11 (18 May 2005 07:50:01 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail