Page 1 of 1

Vertical alignment text in line

Posted: Fri Sep 07, 2012 9:51 am
by FeLDMaRShaL
I insert in rtf text and smile. I want that all items will be centered by rvvaAbsMiddle.
Smile i centered:

Code: Select all

rv.AddBulletEx('', idx, ClnDM.ilSmileys, -1);
TRVBulletItemInfo(rv.GetItem(rv.ItemCount-1)).VAlign := rvvaAbsMiddle;
But I don't know how i can centered simple text:

Code: Select all

rv.AddText(s2, StyleNo);
rv.AddNL(s2, StyleNo, curParaNo);

Posted: Fri Sep 07, 2012 4:32 pm
by Sergey Tkachenko
This option is not supported, text is aligned by a base line.
Well, you can move it up/or down using VShift property of text style, but there is no automatic vertical centering.

Posted: Fri Sep 07, 2012 5:25 pm
by FeLDMaRShaL
Thanks, I'll try it.