VDrawDoubleScrollbarBox


 
Name
  VDrawDoubleScrollbarBox - creates a three-dimensional box with scroll bars.
 
Synopsis
  VDrawDoubleScrollbarBox(win, gc, xloc, yloc, width, height,
        leftscrollbar_width, rightscrollbar_width,
        left_click,right_click)
  Window win;
  GC gc;
  int xloc, yloc, width, height;
  ScrollbarClickInfo *left_click, *right_click;
 
Description
  VDrawDoubleScrollbarBox creates a three-dimensional box with scroll bars.
Scroll bars are drawn on both sides of the box and the click points for
both the scroll bars are returned.
 
Structures
  typedef struct {
        short top_x,top_y;      /*the top-left cood of top Click button*/
        short top_width;        /*the width of the top Click button*/
        short top_height;       /*the height of the top Click button*/
        short bottom_x,bottom_y;/*the top-left cood of botton Click button*/
        short bottom_width;     /*the width of the bottom Click button*/
        short bottom_height;    /*the height of the bottom Click button*/
  } ScrollbarClickInfo;
 
Return Value
  0 - work successfully.
  282 - scrollbar click point was not created.
 
Parameters
  win - the ID of the window to draw the box.
  gc - the GC to be used to draw the same; if no GC is passed it is obtained
        from the window ID.
  xloc, yloc - the xloc,yloc of the box with respect to the window.
  width, height - the width and height of the box with respect to the window.
  leftscrollbar_width - the width of the scrollbar on the left side. If no
        width is specified, then a default value is assumed.
  rightscrollbar_width - the width of the right scrollbar. If no width is
        specified then a default is used.
  left_click - the structure which is returned with the coordinates of the
        click point for the left scrollbar with respect to the window.
  right_click - the structure which is returned with the coordinates of the
        click point for the right scrollbar with respect to the window.
 
Side Effects
  None.
 
Entry Conditions
  VCreateColormap should be called earlier,else VDrawDoubleScrollbarBox
prints an error message to the standard error stream, produces a core dump
file and exits from the current process.
 
Related Functions
VDrawBoxOrButton.