Hi,
is there an easyer solution to set a specific item as the first visible then a loop with FirstVisible and VScroll?
Some items of a longer file have anchors. If user selects a number, this item is to be on top of the current window, is to be the first visible item. As clicking on a page anchor in browser.
thanks
Martin
Set item as first visible
-
- Site Admin
- Posts: 17569
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Sorry, I do not completely understand the question.
Do you want to scroll so that the specific item is shown at the top?
If the item is in the root document (not in a table cell), then
Do you want to scroll so that the specific item is shown at the top?
If the item is in the root document (not in a table cell), then
Code: Select all
rv.GetItemCoords(ItemNo, X, Y);
rv.ScrollTo(Y);