Hi all,
I am using a DB2 client which displays several values in roundabout 20 edit controls.
My script reads some of the values and deletes them under certain conditions.
So far, everything is fine. But to make the changes more visible to the user, I'd like to highlight the edit controls which have their content erased.
My approach was like this:
Getting the handle seems to work, at least I get a hex number as a result.
But the result of SetBkColor is -1 that means "failed".
Any ideas?
Best regards,
Marc
I am using a DB2 client which displays several values in roundabout 20 edit controls.
My script reads some of the values and deletes them under certain conditions.
So far, everything is fine. But to make the changes more visible to the user, I'd like to highlight the edit controls which have their content erased.
My approach was like this:
[ autoit ]
#include <WinAPI.au3> $title = "Form1" $handle = ControlGetHandle($title, "", "Edit1") $result = _WinAPI_SetBkColor($handle, 0xffff00) ConsoleWrite($result)
Getting the handle seems to work, at least I get a hex number as a result.
But the result of SetBkColor is -1 that means "failed".
Any ideas?
Best regards,
Marc