Re: XForms: clearing the window once again

Jerome Culet (jculet@slip.net)
Fri, 30 Jan 1998 14:44:23 -0800

# To subscribers of the xforms list from Jerome Culet <jculet@slip.net> :

AMIT BHATNAGAR wrote:

> # To subscribers of the xforms list from AMIT BHATNAGAR <amit@cs.dal.ca> :
>
> can anyone see anything wrong with this?
>
> void
> clear(FL_OBJECT *test, long x)
> {
> printf ("In the clear callback\n");
> XSetBackground (display, xgc, WhitePixel (display, screen));
> XClearWindow(display, fl_get_canvas_id(fdui->viewport));
> }
>
> where FD_gfx *fdui; these
> Display *display; are
> int screen; global
> GC xgc;
>
> my struct:
> typedef struct {
> FL_FORM *gfx;
> FL_OBJECT *viewport;
> FL_OBJECT *freeobj;
> void *vdata;
> long ldata;
> } FD_gfx;
>
> and I assign...
> display = fl_initialize (argv[0], "project", 0, 0, &argc,argv);
>
> it simply doesn't clear my window..
>
> _________________________________________________
> To unsubscribe, send the message "unsubscribe" to
> xforms-request@bob.usuf2.usuhs.mil or see
> http://bob.usuf2.usuhs.mil/mailserv/xforms.html
> XForms Home Page: http://bloch.phys.uwm.edu/xforms
> List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/

Hi
I have one possible solution, It is not vary scientific but it works
sometimes.

Open the file in a text editor and place the cursor in front of the first
caracter in the script:
Use the arrow key and move the cursor thru each space makeing certain that
there are no
"hidden" spaces or tabs that the computer is seeing and you cant. This
happens more often than is generally known. Strange but true. Give it a shot
and let me know.

Jerry

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/