[Gambas-user] Keyboard input in embedded application
Benoit Minisini
gambas at ...1...
Tue May 13 00:28:17 CEST 2008
On lundi 12 mai 2008, M0E Lnx wrote:
> If I understand the documentation correctly, Gambas applications do
> follow the XEMBED Protocol according to
>
> http://gambasdoc.org/help/comp/gb.qt/embedder?show
>
> The application being embedded is in fact another gambas application
> of my design as well.
>
> But I'm still having the problem. Is there some setting I need to
> adjust somewhere?
>
The documentation is not clear.
A Gambas window does not follow the XEMBED protocol -by default-.
To do that, you must not embed the application from the embedder, but from the
embedded one, by using the Application.Embedder property before creating the
main window.
In other words:
- Run your embedder application.
- Note the window id of the Embedder control.
- Run the embedded application and pass the previous window id as argument.
- In the embedded application, set the Application.Embedder property to the
received window id.
- Create your main window. Now, your application will follow the XEMBED
protocol.
Regards,
--
Benoit Minisini
More information about the User
mailing list