I added a custom prop to store the name of the field being edited following a suggestion made on the Livecode forum. I added this line to the EditValue handler in the Row Behavior script : set the cFieldName of grp "DgNotes" to pKey -- store this for use in the custom field editor. Code in the custom field editor reads the value when it processes the key presses.
Simon Knight s...@anvic.net Telephone : 05603 643965 Mobile : 07963 077071 > On 3 Jan 2015, at 09:07, Simon Knight <s...@anvic.net> wrote: > > Hi Pete, > > Unfortunately I don’t have any answers but I have a similar problem. I am > trying to detect a return in a specific field on a datagrid form and so far > I can either detect the return but not the name of the field (I just get the > name of the field editor) or I can get the name of the field with no > detection of the key press (because the keypress has gone to the field > editor). > > Lest hope one of the experts answers our questions…. > > > Simon Knight > s...@anvic.net > Telephone : 05603 643965 > Mobile : 07963 077071 > > > >> On 21 Dec 2014, at 21:22, Peter Haworth <p...@lcsql.com> wrote: >> >> Got a number of questions for the datagrid experts out there, all related >> to the editing of datagrid cells. >> >> How can I implement a contextual menu when the user right clicks on a cell >> that is being edited? I tried using a mouseDown handler in a custom column >> handler but it doesn't seem to fire when the edit field is clicked. >> >> Tab and escape are ways of getting out of edit mode. If escape/tab have not >> been pressed to register the edit, the underlying datagrid data won;t have >> been updated so how can I get hold of the contents of the edit field for a >> cell if the user has not pressed escape or tab? >> >> Probably the root of the above questions but how can I get hold of the id >> of the field created by the datagrid to edit a cell? >> >> The datagrid library isn't happy if I send an EditCelll message to a cell >> that has been customized to contain, for example, an option menu. By "not >> happy", I mean that any instructions in the handler after dispatching the >> EditCell message are skipped. I guess I should file a QCC report for that >> but in the meantime, how can I find the first column in the selected line >> that has not been customized to contain something other than straight text? >> >> Pete >> lcSQL Software <http://www.lcsql.com> >> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and >> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode