Jump to content

Any way to reuse a created object?

Recommended Posts


I'm displaying content with an embedded object on my GUI.  Everything works.  But I have need to bring up the very same content on an overlaid GUI that needs a different size for the same content.  I thought it would be as simple as creating another occurrence of the already-created object.  But the original object somehow takes on the dimension and x,y coordinates of the first usage.  The parameters of the second use are ignored.  But the content is there and displays fine ... just at the previous coordinates and size.

Here's the method to create:

    $oIE1 = IECreateEmbedded()      ; create the object

    GUICtrlCreateObj($oIE1, $x, $y, $w, $h)    ; place it on GUI

Here's the method to reuse:

    GUICtrlCreateObj($oIE1, $xNew, $yNew, $wNew, $hNew)    ; place it on other GUI

COM objects are a new area, for me.  But I first want to confirm that this is normal behavior (before I try something else).

Then I want to confirm that the solution is to create a different embedded object and populate it with the same content.

Sound right?

Thanks in advance for any advice.


Edited by qwert

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