On Monday 03 February 2003 5:17 pm, [EMAIL PROTECTED] wrote: > On Mon, 3 Feb 2003, Angus Leeming wrote: > > Print statements, CG, print statements! > > Sorry, I cannot catch you. What do you mean by "Print statements"?
Add lots of statements like printf("xoffset = %d\n", sp->xoffset); whereever you want to find out what these parameters store. It isn't rocket science, CG ;-) > > Why do you need XIM to modify the XIC? You create the XIC when the form > > is made visible in forms.c. All you need is to access this XIC from > > XWorkArea.C to set the procomposition area as the current position of the > > cursor in the XWorkArea widget. (Just as you are trying to do in > > input.c.) > > But how can I get "form->xic" from outside of xforms ? "fl_context->xim" > is global in xforms and thus exporting this param looks easier, no? In XWorkArea.h you have: FL_OBJECT * work_area; so, it's an xforms widget. It knows the form it lives on: work_area->form; Angus