[Gambas-user] Embedded X applications

Benoit Minisini gambas at ...1...
Mon Sep 22 20:03:56 CEST 2008


On lundi 22 septembre 2008, Javier wrote:
> First I'd like to thank all the Gambas developers. You are making and
> incredible platform for fast applications development!
>
> I've been using Gambas for a while, and have a project in mind. I want to
> create a Jack audio controler, and I need to emmbed or at least, launch and
> control other X applications.
>
> My question is:
>
> There is a class named Embedder for this to work, and the documentation
> says the following:
>
>  Embedder.Embed (gb.qt)
> *Syntax*
>
> SUB *Embed* ( *Client* AS Pointer *[* , *Prepared* AS Boolean *]* )
>
> Embeds another X11 application.
>
>
>    - *Client* is the identifier of the X11 window to embed.
>    - *Prepared* tells if the client follows the XEmbed protocol. It should
>    be TRUE <file:///usr/share/gambas2/help/help/lang/true.html>.
>
>
>
> The problem is: how do I obtain the Client variable?
>
> For example, imagine that I want to execute and emmbed an application named
> qjackctl (it is a qt application), how do I obtain its client
> identification?
>
> Thank you.

See the Desktop.Find method in the gb.desktop component.

Regards,

-- 
Benoit Minisini




More information about the User mailing list