aarondellis Posted July 25, 2005 Share Posted July 25, 2005 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? Link to comment Share on other sites More sharing options...
GaryFrost Posted July 25, 2005 Share Posted July 25, 2005 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. Link to comment Share on other sites More sharing options...
JHGBaouns Posted August 17, 2005 Share Posted August 17, 2005 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 Link to comment Share on other sites More sharing options...
peethebee Posted August 17, 2005 Share Posted August 17, 2005 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 Link to comment Share on other sites More sharing options...
LxP Posted August 18, 2005 Share Posted August 18, 2005 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. 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