nanogui: linefeed using DrawText
Subject:
Aw: [nanogui] linefeed using DrawText
From:
####@####.####
Date:
20 Apr 2005 09:21:08 +0100
Message-Id: <16951334.1113985267603.JavaMail.ngmail@webmail-01.arcor-online.net>
Afaik you have to do it by yourself. Just scan for \n and call DrawText several times.
If you need more luxury you may use a widget library like fltk or flnx.
Thomas
----- Original Nachricht ----
Von: ofi ####@####.####
An: ####@####.####
Datum: 19.04.2005 16:10
Betreff: [nanogui] linefeed using DrawText
> i want to draw a multi-line text
> i use the function DrawText(hdc,text,strlen(text),&rect,DT_LEFT);
>
> the text output is ok if i draw a single line text like: "this is a single
> line"
> if i want to draw the text "this line has a \nLinefeed" i also get a single
> line output
> and the \n is displayed as an unreadable character
>
> is the microwindow function DrawText able to do a linefeed
> i'm using true type fonts like times and arial for the output
> am i using the correct linefeed character (\n)?
>
>
> ___________________________________________________________________________
> Die einen haben es, die anderen werden es!
> http://my-mail.ch/?redirect=9905
> Der neue Astra Caravan - jetzt probefahren!
> http://www.my-mail.ch/?redirect=1969
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####
>
>
Machen Sie aus 14 Cent spielend bis zu 100 Euro!
Die neue Gaming-Area von Arcor - über 50 Onlinespiele im Angebot.
http://www.arcor.de/rd/emf-gaming-1