1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
/* Form definition file generated by fdesign. */
#include <stdlib.h>
#include "browser_spec.h"
/***************************************
***************************************/
FD_browserattrib *
create_form_browserattrib( void )
{
FL_OBJECT *obj;
FD_browserattrib *fdui = fl_malloc( sizeof *fdui );
int old_bw = fl_get_border_width( );
fl_set_border_width( -1 );
fdui->vdata = fdui->cdata = NULL;
fdui->ldata = 0;
fdui->browserattrib = fl_bgn_form( FL_NO_BOX, 520, 270 );
obj = fl_add_box( FL_FLAT_BOX, 0, 0, 520, 270, "" );
obj = fl_add_labelframe( FL_ENGRAVED_FRAME, 15, 20, 480, 230, "Browser Attributes" );
fl_set_object_lsize( obj, FL_NORMAL_SIZE );
fl_set_object_lstyle( obj, FL_BOLD_STYLE );
obj = fl_add_labelframe( FL_ENGRAVED_FRAME, 225, 57, 111, 140, "Action" );
fdui->content_br = obj = fl_add_browser( FL_HOLD_BROWSER, 353, 55, 120, 150, "Current Items:" );
fl_set_object_lalign( obj, FL_ALIGN_LEFT_TOP );
fdui->input = obj = fl_add_input( FL_NORMAL_INPUT, 35, 67, 170, 25, "EditItem" );
fl_set_object_lalign( obj, FL_ALIGN_LEFT_TOP );
fl_set_object_return( obj, FL_RETURN_END_CHANGED );
obj = fl_add_button( FL_NORMAL_BUTTON, 235, 72, 84, 26, "Add" );
fl_set_button_shortcut( obj, "^A", 1 );
fl_set_object_lalign( obj, FL_ALIGN_CENTER );
fl_set_object_callback( obj, add_item_cb, 0 );
obj = fl_add_button( FL_NORMAL_BUTTON, 235, 133, 84, 24, "Delete" );
fl_set_button_shortcut( obj, "^D", 1 );
fl_set_object_lalign( obj, FL_ALIGN_CENTER );
fl_set_object_callback( obj, delete_item_cb, 0 );
obj = fl_add_button( FL_NORMAL_BUTTON, 235, 162, 84, 24, "Insert" );
fl_set_button_shortcut( obj, "^I", 1 );
fl_set_object_lalign( obj, FL_ALIGN_CENTER );
fl_set_object_callback( obj, insert_cb, 0 );
fdui->hscb_pref = obj = fl_add_choice( FL_NORMAL_CHOICE2, 95, 175, 90, 24, "" );
fl_set_object_shortcut( obj, "^H", 1 );
fl_set_object_callback( obj, hscb_pref_cb, 0 );
fdui->vscb_pref = obj = fl_add_choice( FL_NORMAL_CHOICE2, 95, 147, 90, 24, "" );
fl_set_object_shortcut( obj, "^V", 1 );
fl_set_object_callback( obj, vscb_pref_cb, 0 );
fdui->returnsetting = obj = fl_add_menu( FL_PULLDOWN_MENU, 140, 210, 138, 24, "Return Setting" );
fl_set_object_boxtype( obj, FL_UP_BOX );
fl_set_object_callback( obj, br_returnsetting_change, 0 );
obj = fl_add_button( FL_NORMAL_BUTTON, 120, 101, 82, 24, "ClearField" );
fl_set_button_shortcut( obj, "^L", 1 );
fl_set_object_lalign( obj, FL_ALIGN_CENTER );
fl_set_object_callback( obj, clear_field_cb, 0 );
fdui->auto_clear = obj = fl_add_checkbutton( FL_PUSH_BUTTON, 35, 99, 24, 27, "AutoClear" );
fl_set_button_shortcut( obj, "^U", 1 );
fl_set_object_color( obj, FL_COL1, FL_BLUE );
fl_set_button( obj, 1 );
obj = fl_add_button( FL_NORMAL_BUTTON, 235, 102, 84, 26, "Replace" );
fl_set_button_shortcut( obj, "^R", 1 );
fl_set_object_lalign( obj, FL_ALIGN_CENTER );
fl_set_object_callback( obj, replace_item_cb, 0 );
obj = fl_add_box( FL_NO_BOX, 33, 176, 62, 22, "H\010Scrollbar" );
fl_set_object_lalign( obj, FL_ALIGN_RIGHT | FL_ALIGN_INSIDE );
obj = fl_add_box( FL_NO_BOX, 32, 148, 62, 22, "V\010Scrollbar" );
fl_set_object_lalign( obj, FL_ALIGN_RIGHT | FL_ALIGN_INSIDE );
fl_end_form( );
fdui->browserattrib->fdui = fdui;
fl_set_border_width( old_bw );
return fdui;
}
|