# To subscribers of the xforms list from "T.C. Zhao" <tc_zhao@yahoo.com> :
I'll look into this soon. Sorry for the lateness in responding
to the mailing list as well as personal emails. Things will
improve.
--- Jean-Marc Lasgouttes <Jean-Marc.Lasgouttes@inria.fr> wrote:
> # To subscribers of the xforms list from Jean-Marc Lasgouttes
> <Jean-Marc.Lasgouttes@inria.fr> :
>
>
> [Since I never got an answer on this bug, I post it again...]
>
> I have done a small example of a bug that have been plaguing LyX for
> a
> long time (file attached).
>
> In the following example (butchered from the demo popup.c), if you
> click on the button so that the menu appears, then clicking just to
> the right of the button fails to close the menu. This is a pain in
> LyX
> where the menu bar is a bunch of this buttons and opening 'Edit' when
> 'File' is open is a real problem.
>
> Hope this one is helpful.
>
>
> JMarc
>
> ---------bug.c------------------------------
> #include "forms.h"
>
> typedef struct {
> FL_FORM *pupform;
> void *vdata;
> char *cdata;
> long ldata;
> FL_OBJECT *button;
> } FD_pupform;
>
> extern void menu_callback(FL_OBJECT *, long );
>
>
> FD_pupform *form;
>
> int main(int argc, char *argv[])
> {
> FL_OBJECT *obj;
>
> fl_initialize(&argc, argv, 0, 0, 0);
> form = (FD_pupform *) fl_calloc(1, sizeof(*form));
>
> form->pupform = fl_bgn_form(FL_NO_BOX, 320, 250);
> obj = fl_add_box(FL_UP_BOX,0,0,320,250,"");
> form->button = obj = fl_add_button(FL_TOUCH_BUTTON,
> 100,90,75,30,"Button");
> fl_set_object_callback(obj, menu_callback, 1);
> fl_set_object_shortcut(obj, "#BB", 1);
> fl_end_form();
>
>
> fl_show_form(form->pupform,FL_PLACE_CENTER,FL_FULLBORDER,"pupform");
>
> fl_do_forms();
>
> return 0;
> }
>
> /********* MENU ***********************************************/
>
> void menu_callback(FL_OBJECT *ob, long button)
> {
> int menu = fl_newpup(FL_ObjWin(ob));
> fl_addtopup(menu, "Title%t");
> fl_addtopup(menu, "ABCabcabcabcabcabcabc%h", "A");
> fl_addtopup(menu, "DEFdefdefdefdefdefdef%h", "D");
>
> fl_setpup_position(form->pupform->x + ob->x,
> form->pupform->y + ob->y + ob->h + 10);
> fl_dopup(menu);
> }
> _________________________________________________
> To unsubscribe, send the message "unsubscribe" to
> xforms-request@bob.usuhs.mil or see
> http://bob.usuhs.mil/mailserv/xforms.html
> XForms Home Page: http://world.std.com/~xforms
> List Archive: http://bob.usuhs.mil/mailserv/list-archives/
>
__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuhs.mil or see
http://bob.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://world.std.com/~xforms
List Archive: http://bob.usuhs.mil/mailserv/list-archives/
This archive was generated by hypermail 2b29 : Wed Sep 13 2000 - 10:28:40 EDT