JusGellin Posted October 7, 2007 Share Posted October 7, 2007 This is probably so obvious, but what does it mean when using -1 for the controlID? It seems like it refers back to the create function handle, but I didn't see anything mentioned explicitly in the Help files other than "The control identifier (controlID) as returned by a GUICtrlCreate... function." e.g. $generalitem = GUICtrlCreateTreeViewitem("General", $treeview) GUICtrlSetColor(-1, 0x0000C0) Thanks Link to comment Share on other sites More sharing options...
Nahuel Posted October 7, 2007 Share Posted October 7, 2007 Using -1 as the control ID, uses the ID of the previously created Control.For example, in this case the function GUICtrlSetColor will use the controlID of $generalitem_2$generalitem= GUICtrlCreateTreeViewitem("General", $treeview) $generalitem_2= GUICtrlCreateTreeViewitem("General", $treeview) GUICtrlSetColor(-1, 0x0000C0) Link to comment Share on other sites More sharing options...
JusGellin Posted October 7, 2007 Author Share Posted October 7, 2007 (edited) Using -1 as the control ID, uses the ID of the previously created Control. For example, in this case the function GUICtrlSetColor will use the controlID of $generalitem_2 $generalitem= GUICtrlCreateTreeViewitem("General", $treeview) $generalitem_2= GUICtrlCreateTreeViewitem("General", $treeview) GUICtrlSetColor(-1, 0x0000C0) I kind of thought so. Is saying this is a handle to the control the same as the ID? Edited October 7, 2007 by JusGellin Link to comment Share on other sites More sharing options...
Zedna Posted October 7, 2007 Share Posted October 7, 2007 I kind of thought so. Is saying this is a handle to the control the same as the ID?No it's not the same.See GUICtrlGetHandle() in HelpFile Resources UDF ResourcesEx UDF AutoIt Forum Search 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