Page 1 of 1

RVStyle.OnDrawStyleText Sender.OffsetInItem Problem

Posted: Tue Dec 01, 2009 3:14 pm
by foxaunt
Sender.OffsetInItem in OnDrawStyleText always = 1 , when I use RVStyle.OnDrawStyleText for RVPrint.


for example:

Three lines "A" in richview, like this:

"AAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAA"

then

rvdata.drawitems.count = 3
rvdata.ItemCount = 1

------------------------------------------------------------
RVStyle.OnDrawStyleText will be call 3 times.
1st call : Sender.ItemNo = 0, Sender.OffSetInItem = 1 (YES)
2st call : Sender.ItemNo = 0, Sender.OffSetInItem = 1 (why = 1?)
3st call : Sender.ItemNo = 0, Sender.OffSetInItem = 1 (?? )

BTW:
1. RVStyle.OnDrawStyleText 's DoDefault = false.
2. Richview.visible = false.



:shock:
my EnGlIsH is Pooooor :shock:

Posted: Tue Dec 01, 2009 3:54 pm
by Sergey Tkachenko
This is a bug. It will be fixed in the next update.

Posted: Wed Dec 02, 2009 1:32 am
by foxaunt
Thanks :cry: