Focus & DataGrid

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
D4vidrim
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 61
Joined: Fri May 31, 2013 9:32 am

Focus & DataGrid

Post by D4vidrim » Wed Jul 19, 2017 9:10 pm

Hi all!
I've been looking for the whole day to a very small problem without been able to solve it :oops:

I have a very basic stack with a substack. On the substack there is a dataGrid.

My problem is that when I change record on the dataGrid, most of the times (not always) the focus goes to the main stack. This happens only using key Up/Down from keyboard, it doesn't happen if I change selection using my mouse.

Moreover, it just happens on the with the built app, while it doesn't on LiveCode development environment.

Any idea what it could be?

There is a script on the dataGrid, but the issue doesn't seem to be there, because I've even tried to put another dataGrid (without any code) on the same substack: exactly the same issue. Most of the time, if not always, focus goes to the main stack.

Is there any hope for me? :oops:

D4vidrim
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 61
Joined: Fri May 31, 2013 9:32 am

Re: Focus & DataGrid

Post by D4vidrim » Wed Jul 19, 2017 9:21 pm

Code: Select all

on openStack
set the navigationarrows to FALSE
end openStack
Finally............. :mrgreen:

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9648
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Focus & DataGrid

Post by dunbarx » Wed Jul 19, 2017 11:26 pm

Glad we could help :D

Craig Newman

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”