Discussion Board
-
CeikEdwin, with \n does not reflect a newline
2004-04-19, 08:52
#1
Regular Contributor
In a CeikGlobalTextEditor,
text = "The quick brown \n fox jumps \n over";
When i set the editors text using
CeikGlobalTextEditor::SetTextL(text);
when the text is displayed, the newline does not reflect on my screen.. the text is displayed on one line and just word wrapped..
I want it to be three lines as it should...
I tried to
editor->RemoveFlagFromUserFlag(EEikEdwinNoLineOrParaBreaks)
jst in case Symbian set it upon Construction, but i still have the wrong display...
-
Nokia Developer Expert
one workaround would be to use line breaks that are inserted into the richtext of the editor, for example like this:
iRichMessage->InsertL(iRichMessage->LdDocumentLength(),CEditableText::ELineBreak);
yucca
-
Regular Contributor
got it...
tnx dude!! :)
ahmm, but why doesn't it work on a buffer with a "\n" on it?
-
Super Contributor
and how you get rid of it when you want to read plain text? It just crossed my mind and I'm not sure if I've ever had to solve this problem...:-)
-
Regular Contributor
what do you want to get rid of? the newline characters?
I think u could set the flag:
editor->AddFlagFromUserFlags(EEikEdwinNoLineOrParaBreaks)
Not yet tried this one, but i think this would work...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules