[Gambas-user] Passing focus by code

Christof Thalhofer chrisml at deganius.de
Sat Jul 20 09:32:59 CEST 2019


Hello Jorge,

Am 19.07.19 um 19:07 schrieb Jorge Carrión:
> Well I've done a little control who has a form with a TextBox and a
> GridView inside. When type on Enter ot Tab keys I want pass the focus to
> next control in the custom container who can take it.
> I can't find a way to do this who works on all situations (my control
> inside a container who is inside another container who is inside in a
> form who is inside a tabstrip, etc. etc.)
> 
> The me.next or me.previous reference doesn't work: They can be a HBox,
> for example who takes the focus and user is lost.
> 
> What I pretend is to emulate the Tab key behaviour... without use the
> Desktop.sendkey. I don't want link desktop component to my custom
> control only for that.
> 
> Any clue?

Please have a look at DegFormhelper in the Gambas Software Farm.


Alles Gute

Christof Thalhofer

-- 
Dies ist keine Signatur

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190720/b3dfc656/attachment.sig>


More information about the User mailing list