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 » Thu Aug 30, 2018 3:58 pm

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: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: DG Field Editor to not close on return

Post by Klaus » Thu Aug 30, 2018 4:13 pm

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 » Mon Sep 03, 2018 9:44 am

The script of btn "field editor" of stack "revDataGridLibrary" appears to be empty. Is this correct?

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: DG Field Editor to not close on return

Post by Klaus » Mon Sep 03, 2018 10:15 am

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: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: DG Field Editor to not close on return

Post by Klaus » Mon Sep 03, 2018 12:29 pm

After my comment, LC has updated the lesson! :D

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: DG Field Editor to not close on return

Post by bogs » Mon Sep 03, 2018 1:44 pm

Yah, Elanor is quick isn't she :wink:
Image

Klaus
Posts: 13829
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: DG Field Editor to not close on return

Post by Klaus » Mon Sep 03, 2018 2:01 pm

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 » Tue Sep 04, 2018 10:31 am

I love this forum :lol: :lol: :D :D

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”