XForms: Triggering events question

From: Angus Leeming (a.leeming@ic.ac.uk)
Date: Tue Aug 28 2001 - 14:32:52 EDT

  • Next message: Steve Lamont: "Re: XForms: Triggering events question"

    # To subscribers of the xforms list from Angus Leeming <a.leeming@ic.ac.uk> :

    This bug report appeared recently on the LyX list:

    | Open the latex preamble; insert some previously selected text with the
    | middle mouse button -> the OK button is not activated

    It boils down to: how do I trigger an event with the middle mouse button?
    Does xforms "swallow" such events and so do I need to set a prehandler:

    extern "C" int FeedbackCB(FL_OBJECT * ob, int event,
                              FL_Coord mx, FL_Coord my,
                              int key, void * xev)
            switch (event){
            case FL_PUSH:
                    if (key == 1 && ob->objclass == FL_INPUT)
                            input(ob, 0); // call the function doing the processing

            return 1;

    or is there a simpler way using fl_set_input_return and an equivalent to
    FL_RETURN_MIDDLE_BUTTON (my invention)?


    To unsubscribe, send the message "unsubscribe" to
    xforms-request@bob.usuhs.mil or see
    XForms Home Page: http://world.std.com/~xforms
    List Archive: http://bob.usuhs.mil/mailserv/list-archives/

    This archive was generated by hypermail 2b29 : Tue Aug 28 2001 - 14:38:59 EDT