Sign in to follow this  
Followers 0
Champak

creating controls for specific gui

6 posts in this topic

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?

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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.

Share this post


Link to post
Share on other sites

Wouldn't be the use of hide/show simpler ?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

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
Sign in to follow this  
Followers 0