[XForms] FL_EVENT and it's use

Jeff wd4nmq at comcast.net
Mon Mar 1 18:24:16 EST 2004


Several days ago I posted a message concerning client message events and 
if xforms could handle them. To which I got no reply. I was looking 
through the xforms manual looking for something else and in section 4.3, 
Dealing With Windows. I found it talking about the FL_EVENT.

To qoute:
"To help find out when and event has occured, whenever fl_do_form() and 
fl_check_foems() encounter an event that is not meant for them, but for 
the appliaction program they return a special object FL_EVENT. Upon 
receiving this special event, the application program can and must 
remove the pending event from the queue using fl_XNextEvent()."

There is then a code snippet. Does this mean that this how you would 
handle an XClientMessageEvent?

while(! ready){
  obj = fl_do_form();  // does form as long as events are for form
  if(obj == FL_EVENT){
    fl_XNextEvent(&xevent);
    if(xevent.type == XClientMessageEvent){
          // This is from the thread
          // update server data browser object
    }
}

Is this the right path?

Jeff
wd4nmq at comcast.net
http://mywebpages.comcast.net/wd4nmq



More information about the Xforms mailing list