# 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
default:
}
return 1;
}
or is there a simpler way using fl_set_input_return and an equivalent to
FL_RETURN_MIDDLE_BUTTON (my invention)?
Angus
_________________________________________________
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 : Tue Aug 28 2001 - 14:38:59 EDT