RVStyleDrawStyleText draw function quesstion

General TRichView support forum. Please post your questions here
Post Reply
newfile
Posts: 15
Joined: Fri Jan 18, 2008 8:36 am

RVStyleDrawStyleText draw function quesstion

Post by newfile »

i use RVStyleDrawStyleText function draw text background and text , text is unicode , It's wrong when draw the text ,it's confusion, can you help me ,this textstyle's unicode property set true
newfile
Posts: 15
Joined: Fri Jan 18, 2008 8:36 am

it's ok

Post by newfile »

use it

Sender.TextStyles[CONST_SendNameFont].Draw(s, Canvas, StyleNo, SpaceBefore, Left, Top, Width,
Height, 1, Sender, DrawState, false, false, rvcmColor, rvbdUnspecified);


tks~
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

If this is an Unicode text style, s must contain "raw Unicode" string (two characters in s must represent one Unicode character).
How do you get text in s?
Post Reply