DG Field Editor to not close on return

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
ittarter
Posts: 151
Joined: Sat Jun 13, 2015 2:13 pm

DG Field Editor to not close on return

Post 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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: DG Field Editor to not close on return

Post by Klaus »

Hi Ivan,

maybe you will find the answer here:
http://lessons.livecode.com/m/datagrid/c/2433
Or especially here:
http://lessons.livecode.com/m/datagrid/ ... r-behavior


Best

Klaus
ittarter
Posts: 151
Joined: Sat Jun 13, 2015 2:13 pm

Re: DG Field Editor to not close on return

Post by ittarter »

The script of btn "field editor" of stack "revDataGridLibrary" appears to be empty. Is this correct?
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: DG Field Editor to not close on return

Post 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
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: DG Field Editor to not close on return

Post by Klaus »

After my comment, LC has updated the lesson! :D
bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: DG Field Editor to not close on return

Post by bogs »

Yah, Elanor is quick isn't she :wink:
Image
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: DG Field Editor to not close on return

Post by Klaus »

Yes, she isn't! :D :D :D

--------------------------------------------------

Dear Elanor,

that was just a joke, of course!
ittarter
Posts: 151
Joined: Sat Jun 13, 2015 2:13 pm

Re: DG Field Editor to not close on return

Post by ittarter »

I love this forum :lol: :lol: :D :D
Post Reply