/* Form definition file generated by fdesign on Fri Jan 22 11:40:02 2021 */

#include <stdlib.h>
#include "buttons_gui.h"


/***************************************
 ***************************************/

FD_buttform *
create_form_buttform( void )
{
    FL_OBJECT *obj;
    FD_buttform *fdui = ( FD_buttform * ) fl_malloc( sizeof *fdui );

    fdui->vdata = fdui->cdata = NULL;
    fdui->ldata = 0;

    fdui->buttform = fl_bgn_form( FL_NO_BOX, 290, 260 );

    fdui->backface = obj = fl_add_box( FL_UP_BOX, 0, 0, 290, 260, "" );

    fdui->done = obj = fl_add_button( FL_NORMAL_BUTTON, 185, 215, 90, 30, "Done" );
    fl_set_object_callback( obj, done_cb, 0 );

    fdui->objsgroup = fl_bgn_group( );

    obj = fl_add_frame( FL_ENGRAVED_FRAME, 175, 170, 100, 30, "" );
    fl_set_object_color( obj, FL_COL1, FL_GREEN );

    obj = fl_add_round3dbutton( FL_PUSH_BUTTON, 210, 170, 30, 30, "" );
    fl_set_object_color( obj, FL_COL1, FL_GREEN );

    fdui->bbutt = obj = fl_add_bitmapbutton( FL_NORMAL_BUTTON, 25, 85, 40, 40, "bitmapbutton" );
    fl_set_object_color( obj, FL_COL1, FL_BLACK );

    fdui->pbutt = obj = fl_add_pixmapbutton( FL_NORMAL_BUTTON, 25, 25, 40, 40, "pixmapbutton" );
    fl_set_object_color( obj, FL_COL1, FL_YELLOW );

    obj = fl_add_checkbutton( FL_RADIO_BUTTON, 100, 31, 70, 32, "Red" );
    fl_set_object_color( obj, FL_COL1, FL_RED );

    obj = fl_add_checkbutton( FL_RADIO_BUTTON, 100, 60, 70, 32, "Green" );
    fl_set_object_color( obj, FL_COL1, FL_GREEN );

    obj = fl_add_checkbutton( FL_RADIO_BUTTON, 100, 90, 70, 32, "Blue" );
    fl_set_object_color( obj, FL_COL1, FL_BLUE );

    obj = fl_add_lightbutton( FL_PUSH_BUTTON, 20, 170, 108, 30, "LightButton" );
    fl_set_object_lalign( obj, FL_ALIGN_CENTER );
    fl_set_button( obj, 1 );

    obj = fl_add_roundbutton( FL_PUSH_BUTTON, 200, 35, 75, 25, "Red" );
    fl_set_object_color( obj, FL_COL1, FL_RED );

    obj = fl_add_roundbutton( FL_PUSH_BUTTON, 200, 64, 75, 25, "Green" );
    fl_set_object_color( obj, FL_COL1, FL_GREEN );

    obj = fl_add_roundbutton( FL_PUSH_BUTTON, 200, 93, 75, 25, "Blue" );
    fl_set_object_color( obj, FL_COL1, FL_BLUE );

    obj = fl_add_round3dbutton( FL_PUSH_BUTTON, 180, 170, 30, 30, "" );
    fl_set_object_color( obj, FL_COL1, FL_RED );

    obj = fl_add_round3dbutton( FL_PUSH_BUTTON, 240, 170, 30, 30, "" );
    fl_set_object_color( obj, FL_COL1, FL_BLUE );

    obj = fl_add_button( FL_PUSH_BUTTON, 130, 210, 30, 30, "go" );
    fl_set_object_boxtype( obj, FL_OVAL3D_UPBOX );
    fl_set_object_lstyle( obj, FL_BOLD_STYLE );

    obj = fl_add_button( FL_NORMAL_BUTTON, 20, 210, 90, 30, "Button" );
    fl_set_object_boxtype( obj, FL_ROUNDED3D_UPBOX );

    fdui->bw_obj = obj = fl_add_choice( FL_NORMAL_CHOICE2, 105, 135, 80, 30, "BW" );
    fl_set_object_callback( obj, bw_cb, 0 );

    obj = fl_add_labelframe( FL_ENGRAVED_FRAME, 190, 25, 85, 100, "RoundButton" );

    obj = fl_add_labelframe( FL_ENGRAVED_FRAME, 90, 25, 90, 100, "CheckButton" );

    fl_end_group( );

    fl_end_form( );

    fdui->buttform->fdui = fdui;

    return fdui;
}
