Andreik Posted January 10, 2009 Share Posted January 10, 2009 (edited) I tried this: $GUI = GUICreate("TEST",400,400) $BUTTON1 = GUICtrlCreateButton("TEST",5,5,50,40) $BUTTON2 = GUICtrlCreateButton("TEST",5,50,50,40) $EDIT = GUICtrlCreateEdit("TEST",5,100,50,100) $LABEL = GUICtrlCreateLabel("TEST",200,5,50,40) $RADIO = GUICtrlCreateRadio("TEST",200,200,50,50) GUISetState() GUICtrlSetBkColor("Button1",0x0000FF);work fine ControlDisable("TEST","","Button1") While 1 $MSG = GUIGetMsg() If $MSG = -3 Then Exit Sleep(20) WEnd Control ID should be the same for GuiCtrlSetBkColor and for ControlDisable. GuiCtrlSetBkColor work only with ID returns by GuiCtrlCreate functions. Is any way to get this ID from CLASSNN? EDIT: Just found _WinAPI_GetDlgCtrlID(), work fine. Edited January 10, 2009 by Andreik When the words fail... music speaks. 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