Hello, Angus, I have been trying to find the parameters for the x,y- coordinates of the current cursor position. I have tried sp->xpos, sp->position, etc and some combination of these, with no avail. Now I'm wondering where the piece of codes is, that dictate the current cursor position. Any hint ?
> fl_handle_object calls a pointer to a function that is different for the > different types of widgets. > > In the case of an FL_INPUT widget, it points to handle_key in input.c > In the case of the LyX XWorkArea, it effectively points to > XWorkArea::work_area_handler in XWorkArea.C. > This means the XIC for the WorkArea events cannot be assigned inside of the xform library, which also indicates that I cannot remove the lyxim.C , that is, I have to assign the XIC for the WorkArea events in lyxim.C. The problem with current lyxim.C is that it creates its own "xim" to create XIC, which means we have two xim's at the same time( Remember xforms also creates an xim.) To have only one xim as Miyata insisted couple of days ago, I have to remove the xim on lyxim.C. This means the xim in xforms should be made available outside of xforms library. Do you agree with this? O.K., then here is the problem. "How to export xim to outside world" Need your quick hand. Regards, cghan