Jump to content
Sign in to follow this  
aarondellis

Changing control IDs

Recommended Posts

aarondellis

I had a GUI just like I wanted it (or so I thought). When I added a new control, the control IDs of the GUI changed. Now I have to go back and change my code to reflect the new control IDs.

Is there a way to prevent this?

Share this post


Link to post
Share on other sites
GaryFrost

when you create the controls assign the id to a variable

Example:

$lbl_Done = GUICtrlCreateLabel ("Done",  10, 30, 50)

That way when you need to change or read info for example:

GuiCtrlSetData($lbl_Done,"Finished")

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
JHGBaouns

Hi

Even if the answer solved his case.

Is there any way to change a Control ID of a control?

I really need that.

Regards

JHGBaouns

Share this post


Link to post
Share on other sites
peethebee

Hi!

I don't think so, I believe that the IDs are controlled directly by windows...

Please corrects me, gurus, if I'm telling stories *g*.

peethebee


vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvGerman Forums: http://www.autoit.deGerman Help File: http://autoit.de/hilfe vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

Share this post


Link to post
Share on other sites
LxP

Technically you can change a control's ID by deleting the control and creating a new identical one.

Is there any way to change a Control ID of a control?

I really need that.

<{POST_SNAPBACK}>

Could you please give an example of why you need this? I can't think of a reason myself.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.