XForms: Canvas returns "bad window"

From: Chris Schleiermacher (chris@genomes.de)
Date: Wed Mar 08 2000 - 05:32:12 EST

  • Next message: Chris Schleiermacher: "Re: XForms: Canvas returns "bad window""

    # To subscribers of the xforms list from Chris Schleiermacher <chris@genomes.de> :

    Dear x-formers,

    I'd like to point out a strange behaviour of the canvas object to
    the xforms developers.

    The second fl_show_form call in the following code produces a
    "bad window" error on SuSe6.3 linux and SUN solaris boxes using
    the latest February 2000 update of the 0.89 distribution.
    Note, that the error did not occur with the 0.89 beta version.

    #include "forms.h"
    #include <stdio.h>

    int main(int argc, char *argv[]) {

      FL_FORM *form;
      FL_OBJECT *canvas;

      fl_initialize(&argc, argv, "", 0, 0);

      form = fl_bgn_form(FL_UP_BOX,200,200);
      canvas = fl_add_canvas(FL_NORMAL_CANVAS,20,20,50,50,"");
      fl_end_form();

      fl_show_form(form,FL_PLACE_CENTERFREE,FL_FULLBORDER,"");
      fl_hide_form(form);

      fl_show_form(form,FL_PLACE_CENTERFREE,FL_FULLBORDER,"");

      fl_do_forms();
      return 0;
    }

    Thanks in advance for any help

      Chris

    -- 
    

    ------------------------------------------------------------------------------ Dipl.-Inform. Chris Schleiermacher Office: M3-128 AG PI, Technische Fakultaet, Universitaet Bielefeld Fon: +49 521 106 2908 PO Box 100 131 Fax: +49 521 106 6411 D - 33501 Bielefeld, Germany http://www.TechFak.Uni-Bielefeld.DE/~icschlei/ _________________________________________________ To unsubscribe, send the message "unsubscribe" to xforms-request@bob.usuhs.mil or see http://bob.usuhs.mil/mailserv/xforms.html XForms Home Page: http://world.std.com/~xforms List Archive: http://bob.usuhs.mil/mailserv/list-archives/



    This archive was generated by hypermail 2b29 : Wed Mar 08 2000 - 05:34:21 EST