I have a RichViewEdit that only has horizontal scroll.
Ideas on how best to scroll an item into view on the horizontal scroll.
Something like
ScrollHorizontalTo(ItemNo)
Scroll horizontally to item
-
- Site Admin
- Posts: 17554
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Re: Scroll horizontally to item
Code: Select all
var
R: TRect;
RichViewEdit1.GetItemCoordsEx(RichViewEdit1.RVData, ItemNo, 0, True, R);
RichViewEdit1.HScrollPos := R.Left;