Champak Posted April 14, 2014 Share Posted April 14, 2014 My gui is made upon the launch of my app. I'm in the need of updating a specific control within one of those guis at a later time within a function. Reference: How do I go about recreating a gui control for a specific gui without recreating the whole gui, or rather is it possible? Link to comment Share on other sites More sharing options...
jdelaney Posted April 14, 2014 Share Posted April 14, 2014 (edited) Maybe: GUISwitch Remarks Many of the GUI specific functions work on the "current" window - this is usually the last window created with GUICreate. This function allows you to make another window "current". That's does not mean that the referenced window will become active. You have to use WinActivate. If it's your app, you can create/remove/edit any of the controls. Edited April 14, 2014 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
mikell Posted April 14, 2014 Share Posted April 14, 2014 Wouldn't be the use of hide/show simpler ? Link to comment Share on other sites More sharing options...
Champak Posted April 14, 2014 Author Share Posted April 14, 2014 Jdelaney, so just make the window current and activate it, then I can just recreate the GUI object with the new settings? I'll try that. Thanks. Mikell, Sorry Im not following you. I don't know how hide/show is relevant in my situation, or usable. Link to comment Share on other sites More sharing options...
Champak Posted April 14, 2014 Author Share Posted April 14, 2014 It worked, somewhat, but the results weren't what I expected. I was able to destroy and recreate the control, but it didn't change the visualization to the new one. I still have to restart the program. I guess I have to keep searching. Link to comment Share on other sites More sharing options...
mikell Posted April 14, 2014 Share Posted April 14, 2014 Sorry I meant at the creation of the gui, create the control disabled/hidden and when needed enable/show or disable/hide it using GuiCtrlSetState Maybe a more reliable and easy way than a deletion/recreation Link to comment Share on other sites More sharing options...
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