I need to align paragraph vertically (top, center, bottom) in a RichEdit.
I googled it and found nothing about this issue. Does anybody know a workaround
to achive this. I use C++ Builder 2010, are there any VCL or Windows API way solution?
I need to align paragraph vertically (top, center, bottom) in a RichEdit.
I googled it and found nothing about this issue. Does anybody know a workaround
to achive this. I use C++ Builder 2010, are there any VCL or Windows API way solution?
I don't think TRichEdit
supports Vertical Text Alignment. For example take this tiny RTF document:
{\rtf1\ansi\ansicpg1250\deff0\deflang1048{\fonttbl{\f0\fnil\fcharset0 Calibri;}}\viewkind4\uc1\pard\sa200\sl276\slmult1\qc\lang9\f0\fs22\vertalc Text\par}
When this is put into TRichEdit the "Text" is only aligned horizontally. Open the document with WordPad and it looks absolutely the same. Open it up with Ms Word and the "Text" is centered both vertically and horizontally in the page. Since TRichEdit doesn't support the \vertalc
, there's no need for any kind of API to set that attribute.