RVStyle.OnDrawStyleText Sender.OffsetInItem Problem

General TRichView support forum. Please post your questions here
Post Reply
foxaunt
Posts: 2
Joined: Tue Nov 17, 2009 2:59 pm

RVStyle.OnDrawStyleText Sender.OffsetInItem Problem

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

Post by Sergey Tkachenko »

This is a bug. It will be fixed in the next update.
foxaunt
Posts: 2
Joined: Tue Nov 17, 2009 2:59 pm

Post by foxaunt »

Thanks :cry:
Post Reply