Article View: borland.public.cppbuilder.nativeapi
Article #3302Re: DrawText / DrawText, word wrapping and long strings
From: Remy Lebeau (TeamB)
Date: Thu, 13 Jul 2006 00:15
Date: Thu, 13 Jul 2006 00:15
18 lines
1826 bytes
1826 bytes
"Mike Collins" <its@TheBottomOfThePost.com> wrote in message news:44b52c62@newsgroups.borland.com... > The encrypted block of text looks like this: That is a base64-encoded string. There are no characters in base64 that allow adequate word breaking. You will have to break up the string manually, such as every xx number of characters. That is what email does, for instance - each line is a fixed number of characters (usually around 76) regardless of the encoding used. You could use 86 to break the line into of 2 lines of even length. Alternatively, you will likely have to query your Canvas for the number of available pixels per line, and the number of pixels per character, and then manually draw different portions of the string accordingly on multiple lines. Gambit
Technical Details
Message-ID:
<44b590c9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<44b5208b@newsgroups.borland.com> <44b529fa$1@newsgroups.borland.com> <44b52c62@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> <44b529fa$1@newsgroups.borland.com> <44b52c62@newsgroups.borland.com> Subject: Re: DrawText / DrawText, word wrapping and long strings Date: Wed, 12 Jul 2006 17:15:57 -0700 Lines: 20 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: <44b590c9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1152749769 68.69.17.41 (12 Jul 2006 17:16:09 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail