On Tuesday 12 March 2002 5:41 pm, Angus Leeming wrote: > Whatever. Of more interest to this discussion is why the ? cursor can change > to an arrow if you take it through the main window. Do you see this? It > doesn't happen all the time. Attached is a lyx document HOWTO that may or may > not be interesting.
Further to this, I see in the xforms source that this is sometimes used: Window win = FL_ObjWin(ob) ? FL_ObjWin(ob) : fl_default_win(); where FL_ObjWin and fl_default_win are #defined in forms.h #define FL_ObjWin(o) (FL_IS_CANVAS(o) ? fl_get_canvas_id(o): o->form->window) #define fl_default_win() (fl_state[fl_vmode].trailblazer) Here this means that FL_ObjWin(o) == o->form->window. This Window win = FL_ObjWin(ob) ? FL_ObjWin(ob) : fl_default_win(); smacks of fudge to me, but I know next to nothing about X. Can someone enlighten me a little? Moreover, why are we sometimes getting FL_ObjWin(o) == 0 and the Bad Window message? Angus