BuiltIn object's color properties
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2010
03:33 PM
02-10-2010
03:33 PM
BuiltIn object's color properties
Hello all!
I'm TestComplete 7.5 user, and my problem is that I can't receive system colors from BuiltIn properites.
function Test()
{
Log.Message(BuiltIn.clYellow);
Log.Message(BuiltIn.clWindow);
Log.Message(BuiltIn.clBtnFace);
}
This simple test logs the following numbers: 65535, -16777211, -16777201.
The first one is seemed to be ok, but what are the signed numbers for system colors?
Thank you...
I'm TestComplete 7.5 user, and my problem is that I can't receive system colors from BuiltIn properites.
function Test()
{
Log.Message(BuiltIn.clYellow);
Log.Message(BuiltIn.clWindow);
Log.Message(BuiltIn.clBtnFace);
}
This simple test logs the following numbers: 65535, -16777211, -16777201.
The first one is seemed to be ok, but what are the signed numbers for system colors?
Thank you...
4 REPLIES 4
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2010
09:16 PM
02-10-2010
09:16 PM
Hi Dmitriy,
Actually, this is correct. Such constants as clWindow don't have static colors assigned to them. The color is identified dynamically at run time according to the system settings, so they have special values. You will see the same behavior if you look at the values of these constants in Delphi, for example.
Actually, this is correct. Such constants as clWindow don't have static colors assigned to them. The color is identified dynamically at run time according to the system settings, so they have special values. You will see the same behavior if you look at the values of these constants in Delphi, for example.
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2010
09:22 PM
02-10-2010
09:22 PM
Hm, does it mean that these properties are useless for getting system colors?
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2010
06:35 PM
02-11-2010
06:35 PM
Hi Dmitriy,
If you want to get a numeric color value, these constants seem to be useless. You can do this by using the GetSysColor API function.
For example:
If you want to get a numeric color value, these constants seem to be useless. You can do this by using the GetSysColor API function.
For example:
Log.Message(Win32API.GetSysColor(Win32API.COLOR_WINDOW));
------
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
Yuri
TestComplete Customer Care Engineer
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2010
06:24 PM
02-15-2010
06:24 PM
Thank you, Jared.
I will do it this way...
I will do it this way...
