XForms: object class with canvas object

Tano Fotang (M.Tano@FH-Wolfenbuettel.DE)
Mon, 09 Mar 1998 14:10:11 +0100

# To subscribers of the xforms list from Tano Fotang <M.Tano@FH-Wolfenbuettel.DE> :

i've been using a browser constructed using a canvas and sliders. Now
there're problems in trying to turn it into a new object class.
Problem: the object is added to a form before the form is shown.
where do i obtain the WIndow ID of the canvas object prior to
the form being displayed? Windowatrributes etc have to set for
the canvas when the new browser object is added to a form.

Tano F.

---

ob=fl_make_object(FL_MBROWSER, type,x,y,w,h,label, mbrowser_handle); ob->spec=fl_calloc(1,sizeof(SPEC)); (SPEC *)ob->spec)->ziggzagg.canvas=obj= fl_add_canvas(FL_SCROLLED_CANVAS,x,y,w-17,h-23,label);

win= FL_ObjWin(((SPEC *)ob->spec)->ziggzagg.canvas); or somt other function.. none works (BadWIndow etc) XGetWindowAttributes( fl_display, win, &attributes ); _________________________________________________ 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://bragg.phys.uwm.edu/xforms List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/