Wolvereness Posted January 16, 2005 Share Posted January 16, 2005 Just took me an hour to debug a script I wrote to find out one of the function's return value had changed; function being GUICtrlSetLimit. Looking at the help file I noticd numerous return values had changed. What ever happened to returning the CtrlID in the GUICtrlSet... functions? You can't do something like this anymore: GUICtrlSetLimit(GUICtrlCreateUpdown($Group[$Count][4]), 3, 1)orGUICtrlSetColor(GUICtrlCreateLabel('Level Name', 115, 631, 100, 15, 0x1), 0xffff) This really gets annoying when dealing with a large number of Ctrls in a For/Next loop. Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote] Link to comment Share on other sites More sharing options...
jpm Posted January 16, 2005 Share Posted January 16, 2005 (edited) Just took me an hour to debug a script I wrote to find out one of the function's return value had changed; function being GUICtrlSetLimit. Looking at the help file I noticd numerous return values had changed.What ever happened to returning the CtrlID in the GUICtrlSet... functions?You can't do something like this anymore: GUICtrlSetLimit(GUICtrlCreateUpdown($Group[$Count][4]), 3, 1)orGUICtrlSetColor(GUICtrlCreateLabel('Level Name', 115, 631, 100, 15, 0x1), 0xffff)This really gets annoying when dealing with a large number of Ctrls in a For/Next loop.<{POST_SNAPBACK}>I don't know any reason why this will not workthe following work. GuiCreate("test",250,700) GUICtrlSetColor(GUICtrlCreateLabel('Level Name', 115, 631, 100, 15, 0x1), 0xffff) GuiSetState() sleep(5000)EDIT Typo Edited January 16, 2005 by jpm Link to comment Share on other sites More sharing options...
Wolvereness Posted January 16, 2005 Author Share Posted January 16, 2005 When you must save the control to a $var for later use. Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote] Link to comment Share on other sites More sharing options...
jpm Posted January 16, 2005 Share Posted January 16, 2005 When you must save the control to a $var for later use.<{POST_SNAPBACK}>So the following code is not to heavy to write GuiCreate("test",250,700) $var=GUICtrlCreateLabel('Level Name', 115, 631, 100, 15, 0x1) GUICtrlSetColor(-1, 0xffff) GuiSetState() sleep(5000) 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