TRichView - Getting The Line Height

General TRichView support forum. Please post your questions here
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Do you use Strict=True? If Strict=False, the function must never return -1.
Sergey Tkachenko
Site Admin
Posts: 17557
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

(a link to the topic continuing the discussion - http://www.trichview.com/forums/viewtopic.php?t=5901 , for future reference
Graham
Posts: 64
Joined: Sun Jan 27, 2013 7:51 pm
Location: Berkshire U.K.

Post by Graham »

Yes I originally had Strict = TRUE, but since our recent fixes:

rve.GetItemAt(0, currentScrollY, RVData, ItemNo, OffsetInItem, true);

has changed to

rve.RVData.FindDrawItemForSel(0, currentScrollY, ItemNo, OffsetInItem, False, True, True, False);

everything to do with this mechanism now appears to be working correctly.

Thank you for your very fast support.
Post Reply