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
RVStyle.OnDrawStyleText Sender.OffsetInItem Problem
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: