[Gambas-user] Keyboard input in embedded application

M0E Lnx m0e.lnx at ...626...
Wed May 14 18:43:56 CEST 2008


With this, I have added debugging lines to both applications to verify
the correct argument is being parsed

I can see that the embedded as well as the embedder applications are running.
The problem now is that I do not see the embedded application in the
host(embedder) application.

Please advise.

BTW, I just found out that the Application.Args[] Array starts with 1,
0 is the path to application I guess.


On Wed, May 14, 2008 at 10:46 AM, M0E Lnx <m0e.lnx at ...626...> 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]
>
>
> On the Embedder application I have this
>
> Dim sArg AS String
> sArg = Me.Embedder1.ID
>
> SHELL "/path/to/embedded/application " & sArg WAIT
>
> ME.Embedder1.Embed(sArg)
>
> Does that sound like it should work?
>
>
>
>
> On Wed, May 14, 2008 at 10:27 AM, M0E Lnx <m0e.lnx at ...626...> wrote:
>> Thank you...
>> I think I got it now.
>>
>> PS: Didn't mean to be rude, just wanted my questions to stand out from
>> the rest of the text. Sorry for the misunderstanding.
>>
>>
>>
>>
>> On Wed, May 14, 2008 at 10:09 AM, Rob <sourceforge-raindog2 at ...94...> wrote:
>> > On Wednesday 14 May 2008 10:23, M0E Lnx wrote:
>> > > > - Note the window id of the Embedder control.
>> > >         HOW ???
>> >
>> > Every control has an "ID" property.
>> >
>> > > > - Run the embedded application and pass the previous window id as
>> > > > argument.
>> > >       HOW?
>> >
>> > You pass it on the command line from the calling program, and read it
>> > in the receiving program with Application.Args.  What format you use
>> > is up to you.
>> >
>> > > > - In the embedded application, set the Application.Embedder
>> > > > property to the received window id.
>> > >     WHICH WINDOW ID ?? THEM EMBEDDER'S OR THE EMBEDDED?
>> >
>> > He said "the received window id", so obviously he was referring to the
>> > ID he was talking about all along, which was the embedder control's
>> > ID.
>> >
>> > Also, don't use caps, it's rude.
>> >
>> > Rob
>> >
>> >
>> > -------------------------------------------------------------------------
>> > This SF.net email is sponsored by: Microsoft
>> > Defy all challenges. Microsoft(R) Visual Studio 2008.
>> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> > _______________________________________________
>> > 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