mod/maxgui.mod/fltkmaxgui.mod/src/Fl_Slider.cxx
void Fl_Slider::draw_bg(int X, int Y, int W, int H) {
  fl_push_clip(X, Y, W, H);
  draw_box();
  fl_pop_clip();

  Fl_Color black = active_r() ? FL_FOREGROUND_COLOR : FL_INACTIVE_COLOR;
  if (type() == FL_VERT_NICE_SLIDER) {
    draw_box(FL_THIN_DOWN_BOX, X+W/2-2, Y, 4, H, black);
  } else if (type() == FL_HOR_NICE_SLIDER) {
    draw_box(FL_THIN_DOWN_BOX, X, Y+H/2-2, W, 4, black);
  }
}
// All slider interaction is done as though the slider ranges from
// zero to one, and the left (bottom) edge of the slider is at the
// given position.  Since when the slider is all the way to the
// right (top) the left (bottom) edge is not all the way over, a
// position on the widget itself covers a wider range than 0-1,
// actually it ranges from 0 to 1/(1-size).
All slider interaction is done as though the slider ranges from
zero to one, and the left (bottom) edge of the slider is at the
given position.  Since when the slider is all the way to the
right (top) the left (bottom) edge is not all the way over, a
position on the widget itself covers a wider range than 0-1,
actually it ranges from 0 to 1/(1-size).
All slider interaction is done as though the slider ranges from zero to one and the left ( bottom ) edge of the slider is at the given position . Since when the slider is all the way to the right ( top ) the left ( bottom ) edge is not all the way over a position on the widget itself covers a wider range than 0 - 1 actually it ranges from 0 to 1 / ( 1 - size ) .
void Fl_Slider::draw_bg(int X, int Y, int W, int H) {
  fl_push_clip(X, Y, W, H);
  draw_box();
  fl_pop_clip();
  Fl_Color black = active_r() ? FL_FOREGROUND_COLOR : FL_INACTIVE_COLOR;
  if (type() == FL_VERT_NICE_SLIDER) {
    draw_box(FL_THIN_DOWN_BOX, X+W/2-2, Y, 4, H, black);
  } else if (type() == FL_HOR_NICE_SLIDER) {
    draw_box(FL_THIN_DOWN_BOX, X, Y+H/2-2, W, 4, black);
  }
}
void Fl_Slider :: draw_bg ( int X , int Y , int W , int H ) { fl_push_clip ( X , Y , W , H ) ; draw_box ( ) ; fl_pop_clip ( ) ; Fl_Color black = active_r ( ) ? FL_FOREGROUND_COLOR : FL_INACTIVE_COLOR ; if ( type ( ) == FL_VERT_NICE_SLIDER ) { draw_box ( FL_THIN_DOWN_BOX , X + W / 2 - 2 , Y , 4 , H , black ) ; } else if ( type ( ) == FL_HOR_NICE_SLIDER ) { draw_box ( FL_THIN_DOWN_BOX , X , Y + H / 2 - 2 , W , 4 , black ) ; } }
All slider interaction is done as though the slider ranges from
zero to one, and the left (bottom) edge of the slider is at the
given position.
All slider interaction is done as though the slider ranges from zero to one and the left ( bottom ) edge of the slider is at the given position .