Page 1 of 1
DG Field Editor to not close on return
Posted: Thu Aug 30, 2018 3:58 pm
by ittarter
Hi, quick question, if I want the field editor of my datagrid form to accept the return key instead of closing, what should I do?
Thanks!
-Ivan
Re: DG Field Editor to not close on return
Posted: Thu Aug 30, 2018 4:13 pm
by Klaus
Re: DG Field Editor to not close on return
Posted: Mon Sep 03, 2018 9:44 am
by ittarter
The script of btn "field editor" of stack "revDataGridLibrary" appears to be empty. Is this correct?
Re: DG Field Editor to not close on return
Posted: Mon Sep 03, 2018 10:15 am
by Klaus
Hi Ivan,
oh boy, Livecode REALLY needs to update all of their lessons to reflect all the changes they have made...
OK, after some research I found that the important line needs to be:
Code: Select all
...
Set the script of btn "your custom editorfield behavior button" to the script of the behavior of button "Field Editor" of stack "revDataGridLibrary"
...
Best
Klaus
Re: DG Field Editor to not close on return
Posted: Mon Sep 03, 2018 12:29 pm
by Klaus
After my comment, LC has updated the lesson!

Re: DG Field Editor to not close on return
Posted: Mon Sep 03, 2018 1:44 pm
by bogs
Yah, Elanor is quick isn't she

Re: DG Field Editor to not close on return
Posted: Mon Sep 03, 2018 2:01 pm
by Klaus
Yes, she isn't!
--------------------------------------------------
Dear Elanor,
that was just a joke, of course!
Re: DG Field Editor to not close on return
Posted: Tue Sep 04, 2018 10:31 am
by ittarter