Re: XLib Advice Required...

Steve Lamont (
Tue, 13 May 97 11:10:26 PDT

To subscribers of the xforms list from (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.

To unsubscribe, send the message "unsubscribe" to or see
Xforms Home Page:
List Archive: