RVStyle.OnDrawStyleText Sender.OffsetInItem Problem
Posted: Tue Dec 01, 2009 3:14 pm
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.
my EnGlIsH is Pooooor
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.
my EnGlIsH is Pooooor