Jump to content

_IECreateEmbedded problem


Recommended Posts

I'm using _IECreateEmbedded and it is working as it should, but I need a workaround. I have a control that is inheriting this and an object where from time to time I need to/would like to delete the control and recreate it at a later time. The problem is, as the helpfile says, this function can only be destroyed by destroying the GUI it's contained in...as far as I understand. Is there a workaround to create the guictrl again without causing the script to error out.

Ex:

       $OIE_AD2 = _IECreateEmbedded()
$MEDIA_PLAYER_ARRAY[18] = GUICtrlCreateObj($OIE_AD2, 0, 0, $MVWidth, $MVHeight-95)
       _IENavigate($OIE_AD2, "about:blank", 1)

If I destroy the control and then call this again, it will fail on the _IENavigate.

 

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...