Re: XLib Advice Required...

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 13 May 97 11:10:26 PDT

To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I tried to create a window which would have as parent the
> Main_Wnd->Canvas object.... [...]
> [...] Tho I am not so sure about the "border_width"
> parameter... is it the cause of all or what? The message that my prog.
> puts on the screen is "X Error of failed request: BadWindow (invalid
> Window parameter)" - of course, but I couldn't figure out why.

border_width should have nothing to do with it as long as it's greater
than or equal to zero.

> [...]
>
> TEST = XCreateSimpleWindow(fl_get_display(), Main_Wnd->Canvas,
^^^^^^^^^^^^^^^^
This should be

TEST = XCreateSimpleWindow(fl_get_display(), FL_ObjWin( Main_Wnd->Canvas ),

Main_Wnd->Canvas is an XForms Object, not a Window.

You may also wish to use XCreateWindow() instead. It gives you a lot
more control over the Window configuration.

spl
_________________________________________________
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/xforms-archive/