Masen

Inserting a Window into the same window

7 posts in this topic

im trying to insert/attach a window into another window with out opening 2 autoit forms.

Form1 is the main form and trying to get Form2 inserted into form1.

$Form1_1 = GUICreate("Form1", 1305, 659, 176, 116)





$Form2_2 = GUICreate("Form2", 635, 385, 385, 635)

 

Share this post


Link to post
Share on other sites



What exactly are you trying to do, have two separate windows?  In which case you can use a child window.

Share this post


Link to post
Share on other sites

no im trying to combine the second window inside the other window to make 1 window, and im having a hard time figureing this out

Share this post


Link to post
Share on other sites

Can you post your current code or a screenshot of what you mean?

Share this post


Link to post
Share on other sites

i got nothing for the code. iv been working with

#include <IE.au3>
_IECreateEmbedded ( )

 

but i keep ending up with a child form and im trying to get that into the same window instead of having 2 windows

Share this post


Link to post
Share on other sites

You mean you want to embed two IE objects into your window something like this:

#include <GUIConstantsEx.au3>
#include <IE.au3>
#include <WindowsConstants.au3>

Local $oIE1 = _IECreateEmbedded()
Local $oIE2 = _IECreateEmbedded()
GUICreate("Embedded Web control Test", 620, 630, $WS_OVERLAPPEDWINDOW + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
GUICtrlCreateObj($oIE1, 10, 10, 600, 300)
GUICtrlCreateObj($oIE2, 10, 320, 600, 300)

GUISetState(@SW_SHOW)

_IENavigate($oIE1, "http://www.google.com")
_IENavigate($oIE2, "http://www.autoitscript.com")
_IEAction($oIE1, "stop")
_IEAction($oIE2, "stop")

While 1
    Local $iMsg = GUIGetMsg()
    Select
        Case $iMsg = $GUI_EVENT_CLOSE
            ExitLoop
    EndSelect
WEnd

 

Share this post


Link to post
Share on other sites

sent u a private message

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now