I think you need to do this in the EditFieldText and CloseFieldEditor commands in the datagrid library. I haven;t used them but they are writen up in detail in Trevor's Datagrid Manual.
Pete Haworth On Feb 27, 2011, at 12:08 PM, RevList wrote: > Seems to be my day for questions. > I am building an app and want to control the enabling and disabling of > menu items based on where the cursor is. Mostly, I have no problem, > except when I am in a datagrid. > I have a datagrid that has only one editable column. When I double click > on that column on a row and get into that specific field for editing, I > want to enable some menu items (like Copy, paste). When I exit that > field, I want to disable them. > On other fields in the card, I do this on the OpenField and ExitField > handlers. > How do I do this in a Datagrid? > > As always, thanks for anyone who can help. An unusual snow storm in > Vancouver has me coding today on a pet project. > > ****************************************** > Stewart Lynch > CreaTECH Solutions > sly...@createchsol.com > 604.484.8499 > Skype:StewartLynch > > There are only 10 kinds of people. Those who understand binary and those > who don't. > ****************************************** > > _______________________________________________ > 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