Vertical alignment text in line

General TRichView support forum. Please post your questions here
Post Reply
FeLDMaRShaL
Posts: 2
Joined: Fri Sep 07, 2012 9:44 am

Vertical alignment text in line

Post 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);
Sergey Tkachenko
Site Admin
Posts: 17569
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post 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.
Last edited by Sergey Tkachenko on Sat Sep 08, 2012 10:05 am, edited 1 time in total.
FeLDMaRShaL
Posts: 2
Joined: Fri Sep 07, 2012 9:44 am

Post by FeLDMaRShaL »

Thanks, I'll try it.
Post Reply