HeidiR Posted December 14, 2008 Posted December 14, 2008 Hi All, I am creating an icon control with the code below: CODE$ICON = GUICtrlCreateIcon(test.exe", -6, 946, 686) Then trying to disable the control and make the icon gray with the code below: CODEGUICtrlSetState($ICON, $GUI_DISABLE) The control become disabled as expected, but does not turn gray. Is this normal or am I missing something? HeidiRFind free applications, code examples and more on my site at:http://heidisdownloads.com/
Andreik Posted December 14, 2008 Posted December 14, 2008 No need tu use $GUI_DISABLE, what you want is ControlDisable(),read about in help file.
HeidiR Posted December 15, 2008 Author Posted December 15, 2008 No need tu use $GUI_DISABLE, what you want is ControlDisable(),read about in help file.Thanks for you quick response. I tried ControlDisable() but received the same results as with GUICtrlSetState($ICON, $GUI_DISABLE). Maybe, graying-out a control only works for built-in Windows controls and not images you supply? HeidiRFind free applications, code examples and more on my site at:http://heidisdownloads.com/
wraithdu Posted December 15, 2008 Posted December 15, 2008 Yes. If you want to change the icon's color, you need a new icon or some sort of graphics overlay.
HeidiR Posted December 15, 2008 Author Posted December 15, 2008 Yes. If you want to change the icon's color, you need a new icon or some sort of graphics overlay.Thanks for the confirmation! HeidiRFind free applications, code examples and more on my site at:http://heidisdownloads.com/
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