XForms: fl_get_menu() sometimes returns 0 (undocumented)

Tristan Savatier (tristan@mpegtv.com)
Sun, 27 Jul 1997 21:09:02 -0700

To subscribers of the xforms list from Tristan Savatier <tristan@mpegtv.com> :

Version 0.86.

The manual says:

> Whenever the user selects some menu item, the
> menu object is returned to the application program. To find
> the actual menu item selected by the user use
>
> int fl_get_menu(FL_OBJECT *obj)
>
> When the first item is selected 1 is returned,
> for the second item 2, etc. If no item was selected -1 is returned.

No mention of fl_get_menu() ever returning 0.

But here is what I found:

If a menu if left hanging (by just clicking
on the menu object and not making any selection),
after 20 seconds the hanging menu closes automatically
and the application callback is called for the
menu object.

In this situation, fl_get_menu() returns 0.

I believe that this feature should be documented
(or the fl_get_menu() should return -1 instead
of 0 in this case, meaning no item
was selected).

Regards, -- Tristan Savatier (President, MpegTV LLC)

MpegTV: /cgi-bin/exit-to?http://www.mpegtv.com
MPEG.ORG: http://www.mpeg.org
_________________________________________________
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/