JusGellin Posted October 7, 2007 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
Nahuel Posted October 7, 2007 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)
JusGellin Posted October 7, 2007 Author 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
Zedna Posted October 7, 2007 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
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