mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Tree.cxx
void Fl_Tree::vposition(int pos) {
  if (pos < 0) pos = 0;
  if (pos > _vscroll->maximum()) pos = (int)_vscroll->maximum();
  if (pos == _vscroll->value()) return;
  _vscroll->value(pos);
  redraw();
}
///  Sets the vertical scroll offset to position \p pos.
///  The position is how many pixels of the tree are scrolled off the top edge
///  of the screen. Example: A position of '3' scrolls the top three pixels of
///  the tree off the top edge of the screen.
///  \param[in] pos The vertical position (in pixels) to scroll the browser to.
///
Sets the vertical scroll offset to position \p pos.
The position is how many pixels of the tree are scrolled off the top edge
of the screen. Example: A position of '3' scrolls the top three pixels of
the tree off the top edge of the screen.
\param[in] pos The vertical position (in pixels) to scroll the browser to.
Sets the vertical scroll offset to position \ p pos . The position is how many pixels of the tree are scrolled off the top edge of the screen . Example : A position of ' 3 ' scrolls the top three pixels of the tree off the top edge of the screen . \ param [ in ] pos The vertical position ( in pixels ) to scroll the browser to .
void Fl_Tree::vposition(int pos) {
  if (pos < 0) pos = 0;
  if (pos > _vscroll->maximum()) pos = (int)_vscroll->maximum();
  if (pos == _vscroll->value()) return;
  _vscroll->value(pos);
  redraw();
}
void Fl_Tree :: vposition ( int pos ) { if ( pos < 0 ) pos = 0 ; if ( pos > _vscroll -> maximum ( ) ) pos = ( int ) _vscroll -> maximum ( ) ; if ( pos == _vscroll -> value ( ) ) return ; _vscroll -> value ( pos ) ; redraw ( ) ; }
Sets the vertical scroll offset to position \p pos.
Sets the vertical scroll offset to position \ p pos .