[Gambas-bugtracker] Bug #2305: set focus to an editable Tableview element

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Fri Jul 9 13:19:43 CEST 2021


http://gambaswiki.org/bugtracker/edit?object=BUG.2305&from=L21haW4-

Comment #4 by Jim SUTHERLAND:

I want to be able to set the focus to a Tableview element,
the same as e.g. Search.SetFocus

Code snippet: I want to set focus to tableview1[i, 3] - I can't find
the appropriate method.

If varkey = 16777220 'Enter
    If search.text <> Null
      For i As Integer = 0 To f_len
        If InStr(TableView1[i, 2].Text, search.text)
          tableview1[i, 3].Background = 65535
        Endif 
      Next
    Endif
  Endif      
 End

Program attached.

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

Attachment: xl.gbs




More information about the Bugtracker mailing list