Champak

_IECreateEmbedded problem

3 posts in this topic

#1 ·  Posted

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.

 

Share this post


Link to post
Share on other sites



#2 ·  Posted

I think I realized what I was doing and why it's not working. Is there a way to simply create a GUI control in a separate function and attach it to a specific GUI? Because now that I'm looking at it, that's what I am attempting to do.

Share this post


Link to post
Share on other sites

#3 ·  Posted

Well, I figured this out. Needed GUIswitch, never noticed that before.

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