Sign in to follow this  
Followers 0
aarondellis

Changing control IDs

5 posts in this topic

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



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

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

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

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  
Followers 0