(data grid) Can't get the text selected in the Edit Field When It Opens
Andre.Bisseret at inria.fr
Tue Jul 20 10:26:46 CDT 2010
I have a data grid table in which I would like the text appears
selected when an edit field is opened.
I tried the following:
1 - created a button "My default column behavior"
2 - set the script of btn "My default column behavior" to the script
of button "Default Column" of stack "revDataGridLibrary"
3 - set the dgProps["default column behavior"] of group "MyDataGrid"
to the long id of btn "My default column behavior"
4 - In the script of the button added a line to the handler command
EditValue as follow:
##In order to select all text before opening
set the dgTemplateFieldEditor["select text"] of the dgControl of
me to true --ADDED LINE
EditFieldText the long ID of me, the dgIndex of me, the dgColumn
5 - verified that the handler: getProp dgDataControl was in the script
Does not work here ;-(( the text of the edit field is not selected
when the field is opened
What am I missing?
Thanks for any help
Best regard from Grenoble
More information about the use-livecode