[XForms] Window id in a form

Jeff wd4nmq at comcast.net
Thu Mar 4 18:20:31 EST 2004


Where is the window's id stored? Ya know, the return value of 
XCreateWindow().
If I have an app that has only the form called, say testEvent, it would 
be stored in fd_testEvent->testEvent->window, but I'm not sure.

I am trying to be able to have threads send ClientMessage events to the 
main form. I have posted that idea before. I wrote an app that writes 
fd_testEvent->testEvent->window to a text widget so I now what it is and 
then do the following:

    while(1){
      obj = fl_do_forms();
      puts("We are out of fl_do_forms()");
      if(obj == FL_EVENT){
      fl_XNextEvent(&ev);
      if(ev.type = ClientMessage){
         puts("We received a ClientMessage event");
         }
      }
    }

I have another app that I enter the displayed id and it uses 
XSendEvent() to send a ClientMessage event to it. I have tested this out 
with a short Xlib app to make sure my sending app works, and it does. 
But, when I use the xforms app as the recipient, it never comes out of 
the fl_do_forms().

Anybody got any ideas?

Jeff
wd4nmq at comcast.net




More information about the Xforms mailing list