Tuesday, September 16, 2008

wrap text - Symbian S60

TBidiText* bidi = TBidiText::NewL(atext, 10); // atext - text to be displayed
// 10->no.of lines (reduce as much as possible)
// each line OS will take 8 bytes extra



bidi->WrapText(aRect.Width(), *iFont, NULL); // iFont (font reference )




TPtrC text = bidi->DisplayText();

note: tbiditext - inbuilt function

No comments: