Champak Posted January 3, 2017 Posted January 3, 2017 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.
Champak Posted January 3, 2017 Author Posted January 3, 2017 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.
Champak Posted January 3, 2017 Author Posted January 3, 2017 Well, I figured this out. Needed GUIswitch, never noticed that before.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now