I'm about to go to bed for the night, but what I've got now seems to move properly IFF the next entry already exists when you enter the move_cursor() callback. For example, if you enter the ledger, change one field, and tab to the end, it will put you back on the same line (but will create a new one at the end). Then if you tab to the end, you will get moved to the next line. Weird, huh? Have a look...
-derek Dave Peticolas <[EMAIL PROTECTED]> writes: > --=-DsOp5MFKFjrB8DsNnU2c > Content-Type: text/plain > Content-Transfer-Encoding: quoted-printable > > On Sun, 2001-12-02 at 18:35, Derek Atkins wrote: > > PS: Perhaps you could explain to be how the traverse() and > > move_cursor() callbacks are supposed to work? I can't seem to > > get the EntryLedger to DTRT (see checked-in code). > > The traverse callback is called when the user moves to a new > cell as a result of user input. The callback allows a move > to be aborted, changed, or other action taken in response > to the user input. The split register uses this callback > to implement auto-completion, among other things. > > The move_cursor callback is called when the current cursor > changes to a new row. This callback should save any changes > to the current cursor. It can also change where the current > cursor will end up. In the split register, it also needs to > collapse the old transaction if it was only temporarily > opened by the 'split' button in the register. > > What is going wrong in the entry ledger? > > dave > > > --=-DsOp5MFKFjrB8DsNnU2c > Content-Type: application/pgp-signature > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQA8Cypt5effKKCmfpIRAtmDAJsEqGs3I+WfesaWJv7y+USFzL8R9ACfbsYF > J9OkTvxuAvae10D+rUznw7M= > =Pjmt > -----END PGP SIGNATURE----- > > --=-DsOp5MFKFjrB8DsNnU2c-- > -- Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory Member, MIT Student Information Processing Board (SIPB) URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH [EMAIL PROTECTED] PGP key available _______________________________________________ gnucash-devel mailing list [EMAIL PROTECTED] http://www.gnumatic.com/cgi-bin/mailman/listinfo/gnucash-devel