[Gambas-user] Keyboard input in embedded application

Benoit Minisini gambas at ...1...
Wed May 14 18:33:17 CEST 2008


On mercredi 14 mai 2008, M0E Lnx wrote:
> Ok.. I may have spoken too soon here
>
> In the embedded application, before the main window loads, I have this
>
> Application.Embedder = Application.Args[0]

Correct.

>
>
> On the Embedder application I have this
>
> Dim sArg AS String
> sArg = Me.Embedder1.ID

OK.

>
> SHELL "/path/to/embedded/application " & sArg WAIT

OK.

>
> ME.Embedder1.Embed(sArg)

No! The embedding is done by the child process, so you don't have to, and must 
not do it again in the parent process.

The Embedder.Embed() method is only there for embedding programs not written 
in Gambas. For programs written in Gambas you should (must?) use this method.

Anyway the focus problem is there. I tried to understand what happens with 
Gambas application, as it is a Gambas problem (if you embed Konqueror for 
example, it can get focus normally). But I didn't succeed. Note that I 
upgraded the XEMBED support in gb.qt recently to the last version provided by 
TrollTech, but it didn't change anything.

Regards,

-- 
Benoit Minisini




More information about the User mailing list