Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages
Started by Renald Yazmir
Tue, 10 Jul 2007 20:24
TextOut() to ouput multiple lines of text
Author: Renald Yazmir
Date: Tue, 10 Jul 2007 20:24
Date: Tue, 10 Jul 2007 20:24
16 lines
1156 bytes
1156 bytes
Hello, I am using TextOut() to display text on multiple lines. Somehow it only displays text on a single line. Ex: Input: 1 2 3 Output after calling TextOut() 123 Thank you
Re: TextOut() to ouput multiple lines of text
Author: Remy Lebeau (TeamB)
Date: Tue, 10 Jul 2007 19:44
Date: Tue, 10 Jul 2007 19:44
12 lines
1168 bytes
1168 bytes
"Renald Yazmir" <renald@partmaker.com> wrote in message news:4693dd13$1@newsgroups.borland.com... > I am using TextOut() to display text on multiple lines. > Somehow it only displays text on a single line. You did not show how you are receiving the input or how you are drawing the output. Gambit
Re: TextOut() to ouput multiple lines of text
Author: Asger Jorgensen
Date: Tue, 10 Jul 2007 23:52
Date: Tue, 10 Jul 2007 23:52
18 lines
1359 bytes
1359 bytes
Hi Renald
I find it easyer to use:
int DrawText(
HDC hDC, // handle to device context
LPCTSTR lpString, // pointer to string to draw
int nCount, // string length, in characters
LPRECT lpRect, // pointer to structure with formatting dimensions
UINT uFormat // text-drawing flags
);
It gives You much more control over the drawing.
Kind regards
Asger
>
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads