mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Tree.cxx
void Fl_Tree::show_item(Fl_Tree_Item *item, int yoff) {
  if ( ! item ) return;
  int newval = item->y() - y() - yoff + (int)_vscroll->value();
  if ( newval < _vscroll->minimum() ) newval = (int)_vscroll->minimum();
  if ( newval > _vscroll->maximum() ) newval = (int)_vscroll->maximum();
  _vscroll->value(newval);
  redraw();
}
/// Adjust the vertical scroll bar so that \p item is visible
/// \p yoff pixels from the top of the Fl_Tree widget's display.
///
/// For instance, yoff=0 will position the item at the top.
///
/// If yoff is larger than the vertical scrollbar's limit,
/// the value will be clipped. So if yoff=100, but scrollbar's max
/// is 50, then 50 will be used.
///
/// \see show_item_top(), show_item_middle(), show_item_bottom()
///
Adjust the vertical scroll bar so that \p item is visible
\p yoff pixels from the top of the Fl_Tree widget's display.

For instance, yoff=0 will position the item at the top.

If yoff is larger than the vertical scrollbar's limit,
the value will be clipped. So if yoff=100, but scrollbar's max
is 50, then 50 will be used.


Adjust the vertical scroll bar so that \ p item is visible \ p yoff pixels from the top of the Fl_Tree widget ' s display . For instance yoff = 0 will position the item at the top . If yoff is larger than the vertical scrollbar ' s limit the value will be clipped . So if yoff = 100 but scrollbar ' s max is 50 then 50 will be used .
void Fl_Tree::show_item(Fl_Tree_Item *item, int yoff) {
  if ( ! item ) return;
  int newval = item->y() - y() - yoff + (int)_vscroll->value();
  if ( newval < _vscroll->minimum() ) newval = (int)_vscroll->minimum();
  if ( newval > _vscroll->maximum() ) newval = (int)_vscroll->maximum();
  _vscroll->value(newval);
  redraw();
}
void Fl_Tree :: show_item ( Fl_Tree_Item * item , int yoff ) { if ( ! item ) return ; int newval = item -> y ( ) - y ( ) - yoff + ( int ) _vscroll -> value ( ) ; if ( newval < _vscroll -> minimum ( ) ) newval = ( int ) _vscroll -> minimum ( ) ; if ( newval > _vscroll -> maximum ( ) ) newval = ( int ) _vscroll -> maximum ( ) ; _vscroll -> value ( newval ) ; redraw ( ) ; }
Adjust the vertical scroll bar so that \p item is visible
\p yoff pixels from the top of the Fl_Tree widget's display.
Adjust the vertical scroll bar so that \ p item is visible \ p yoff pixels from the top of the Fl_Tree widget ' s display .