B4J Question Docking window

Firpas

Active Member
Licensed User
Longtime User
Hello everyone
In Vb6 and also in Vb.Net it is possible to embed an application inside a container control (PictureBox for example) using certain functions of the Windows API (FindWindow, SetParent and MoveWindows).

This article (in Spanish) explains how to do it

http://www.elguille.info/NET/dotnet/setParentNET.aspx

Is it possible to hack something like this also in Java with B4J?

Thanks for your cooperation
 

Firpas

Active Member
Licensed User
Longtime User
Thanks for your quick response.
If I have been watching this work, but it seems to me that it is not exactly the same.
What I intend is to run an executable (jar) inside the form of another executable (jar).
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
What you can do is for ex:
Create a nonui app which does output to std
From the 2nd app you can call the 1st app using shell and capture the output which you show in your form...
B4X:
    shl.Initialize("shl", "gdal_merge.bat" , args)
    shl.WorkingDirectory = "C:\OSGeo4W64\"
    shl.Run(-1)  ' .RunSynchronous(10000) 'set a timeout of 10 seconds
    running = True
    t.Enabled = True   ' t is a Timer which i start after running the nonui app (in this case a batchfile)
End Sub
Sub Timer_Tick
    If running  Then
        memo.Text = shl.GetTempOut ' show the active output in a textarea
    End If
End Sub


But speaking about an UI App this will not work. I dont know if you can run another app "in yours".
 
Upvote 0

Firpas

Active Member
Licensed User
Longtime User
I want to do something like html tag iframe.
You can show a second url inside an iframe as you know
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…