Adding Slider Objects (XForms (Forms Library) - Version 1.2 (Rev. 4) A Graphical User Interface Toolkit for X)

Next: Slider Types, Up: Slider Object [Contents][Index]

#### 17.1.1 Adding Slider Objects

Adding an object To add a slider to a form use

    FL_OBJECT *fl_add_slider(int type, FL_Coord x, FL_Coord y,
                             FL_Coord w, FL_Coord h, const char *label);

or

    FL_OBJECT *fl_add_valslider(int type, FL_Coord x, FL_Coord y,
                                FL_Coord w, FL_Coord h, const char *label);

The meaning of the parameters is as usual. The label is by default placed below the slider. The difference between a normal slider and a valslider is that for the second type its value is displayed above or to the left of the slider.