Guest_imported
New member
- Jan 1, 1970
- 0
Hi!
I wanted have a Textwidth of a Line of Richedit.
this code may useful:
Canvas.Textwidth(RichEdit1.Lines[0])
but when I have a formated text in my richedit this Code not works, So I tried this Code :
Canvas.Font.Assign(RichEdit1.SelAttribute);
Canvas.Textwidth(Richedit1.Lines[0]);
but when I have 2 or more fonts and sizes and styles in my Lines this code doesn't work too.
please help me that what I must do?
Thank you
Hooman
I wanted have a Textwidth of a Line of Richedit.
this code may useful:
Canvas.Textwidth(RichEdit1.Lines[0])
but when I have a formated text in my richedit this Code not works, So I tried this Code :
Canvas.Font.Assign(RichEdit1.SelAttribute);
Canvas.Textwidth(Richedit1.Lines[0]);
but when I have 2 or more fonts and sizes and styles in my Lines this code doesn't work too.
please help me that what I must do?
Thank you
Hooman