Jump to content

GUICtrlCreateIcon and GUICtrlSetState $GUI_DISABLE


HeidiR
 Share

Recommended Posts

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/
Link to comment
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/
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...