Cannot focus on a datagrid??

zryip theSlug zryip.theslug at gmail.com
Mon Dec 19 13:14:02 CST 2011


On Mon, Dec 19, 2011 at 7:25 PM, Bob Sneidar <bobs at twft.com> wrote:
> Hi all.

Hi Bob,

> Is this normal? I have in a script (or the message box) focus on group "dgSites". This is a datagrid. I get an error:
> Message execution error:
> Error description: focus: not a valid control
> Hint:
>
> A datagrid is not a valid control for receiving the focus command?? Isn't that odd? Or is it a bug? Of course I can hack around it by using:
> focus on nothing;tabKey
>
> But you all know how I HATE to hack around things....  mmm..... okay I can't back that up. But still!

Have you tried to use the dgFocus property from the datagrid API?

set the dgFocus of group "DataGrid" to {true | false}


Best Regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.com



More information about the use-livecode mailing list