/* Form definition file generated with fdesign. */

#include "copyright.h"

#include "forms.h"
#include <stdlib.h>
#include "xfbgi.h"


FD_xfbgi *create_form_xfbgi(void)
{
  FL_OBJECT *obj;
  FD_xfbgi *fdui = (FD_xfbgi *) fl_calloc(1, sizeof(*fdui));

  fdui->xfbgi = fl_bgn_form(FL_NO_BOX, 640, 480);
  obj = fl_add_box(FL_NO_BOX,0,0,640,480,"");
  fdui->canvas = obj = fl_add_canvas(FL_SCROLLED_CANVAS,0,0,640,480,"");
    fl_set_object_callback(obj,canvas_cb,0);
  fl_end_form();

  fl_add_canvas_handler(fdui->canvas, Expose, xfgc_canvas_expose, fdui);
 /*
  fl_add_canvas_handler(fdui->canvas, ButtonPress, canvas_expose, fdui);
  fl_add_canvas_handler(fdui->canvas, ButtonRelease, canvas_expose, fdui);
  fl_add_canvas_handler(fdui->canvas, KeyPress, canvas_expose, fdui);
  fl_add_canvas_handler(fdui->canvas, KeyRelease, canvas_expose, fdui);
 */
 
  return fdui;
}
/*---------------------------------------*/

