[Gambas-user] SetFocus on DataBrowser

Toni arosa at ...2015...
Sun Nov 22 11:24:09 CET 2009


Hi there,

I think it's got to do with the order that events fire... In any case, 
if you use the event "GotFocus" of the TabStrip, it should work as you 
expect.

Regards,
Toni

En/na nospam.nospam.nospam at ...626... ha escrit:
> Okie dokey, this one is giving me so much heartburn that even rude 
> suggestions are welcome.
>
> There is a form with a tab control (tsMain) that has a number of tabs.
>
> There is code in tsMain_Click that sets the focus to the default 
> control on the tab that was selected.
>
> If the default control is, say, a ComboBox, the ComboBox will 
> immediately accept keystrokes such as up and down arrow, which is 
> correct.
>
> If the default control is a DataBrowser, the DataBrowser will not 
> accept keystrokes. It must be clicked before it will accept keystrokes.
>
> How do I get the the DataBrowser to accept keystrokes so that user 
> does not have to click the control first?
>
> An example replicating the behaviour is attached. The database will 
> need to be copied into /tmp/.
>
>
>
>
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>   




More information about the User mailing list