Jump to content

Recommended Posts

Posted

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/
Posted

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/
Posted

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/

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
×
×
  • Create New...