previous up next     contents index
Next: wxMediaEdit::SetAnchor Up: wxMediaEdit: wxMediaBuffer Previous: wxMediaEdit::SaveFile

wxMediaEdit::ScrollToPosition

  Bool ScrollToPosition (long start, Bool ateol = FALSE, long end = -1, int bias = 0)

Scrolls the buffer so that the given position is visible. See End of Line Ambiguity (section gif) for a discussion of ateol. If end is not -1 and not the same as start, then the range start to end is made visible and ateol is ignored.

When the range cannot fit in the visible area, bias indicates which end of the range to display. When bias is -1, then the start of the range is displayed. When bias is 1, then the end of the range is displayed.

If the buffer is scrolled, then ScrollToPosition will redraw the buffer and return TRUE; otherwise, ScrollToPosition returns FALSE.



PLT