Sign in to follow this  
Followers 0
HeidiR

GUICtrlCreateIcon and GUICtrlSetState $GUI_DISABLE

5 posts in this topic

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:

CODE
GUICtrlSetState($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/

Share this post


Link to post
Share on other sites



No need tu use $GUI_DISABLE, what you want is ControlDisable(),read about in help file.


When the words fail... music speaks

Share this post


Link to post
Share on other sites

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/

Share this post


Link to post
Share on other sites

Yes. If you want to change the icon's color, you need a new icon or some sort of graphics overlay.

Share this post


Link to post
Share on other sites

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/

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0