[EMAIL PROTECTED] writes
>So far everything works, but what i wanted to do now
>is that when the user entered his data the matrix
>automatically switches to the next cell, so that the
>user can go on typing without pressing TAB. Here is
>the code of OnLeaveCell:

The tricky bit here is how do you know when the user has finished 
entering data?  I'm gonna go out on a limb and assume that he or she
hits enter.  If that's the case, then you can use the traverseCellCallback
to tell the text widget to hop over to the next cell (see the traverse
example for how to do this).

On the other hand, if you are detecting the finished bit after a number
of characters - in which case, you'd be using a modifyVerify callback
anyway - you should be able to call the EditCell bizzo from that callback.

If all of that is of no use, you can always assign callbacks directly
to the text widget by getting the widget id (XtVaGetValues(mw, XmNtextWidget...
and use your own solution.

Hope this helps

Andrew



-- 
Andrew Lister        Deutsche Bank, Australia        Ph: +61 2 9258 2404
-> ERROR: User not compatible.  Upgrade user and reload program.

Reply via email to