🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: DrawText / DrawText, word wrapping and long strings

#3300
From: Remy Lebeau (TeamB)
Date: Wed, 12 Jul 2006 16:57
20 lines
1582 bytes
"Mike Collins" <its@TheBottomOfThePost.com> wrote in message
news:44b5208b@newsgroups.borland.com...

> the resultant data / ansistring is 172 characters long and is a solid
> block of text without any spaces in it.

Does it have any hyphens in it?

> When I use this with DrawText or DrawTextEx it will not wrap the
> test so the string goes of the end of the canvas / page.  I assum this
> is because it can't find any blank spaces between 'words'.

Spaces are not the only thing that can allow a string to be split.

I am assuming that you are specifying the DT_WORDBREAK flag, is that right?
What does the string actually look like?


Gambit
Technical Details
Message-ID: <44b529fa$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news2.volia.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44b5208b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,27d018c4a89bdf5b
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44b5208b@newsgroups.borland.com>
Subject: Re: DrawText / DrawText, word wrapping and long strings
Date: Wed, 12 Jul 2006 09:57:08 -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: 68.69.17.41
Message-ID: <44b529fa$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1152723450 68.69.17.41 (12 Jul 2006 09:57:30 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news2.volia.net!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail