Editing datagrid cells

Simon Knight smk at anvic.net
Sat Jan 3 04:07:46 EST 2015


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
smk at anvic.net
Telephone : 05603 643965
Mobile : 07963 077071



> On 21 Dec 2014, at 21:22, Peter Haworth <pete at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list