I declare the API call at the start of my program;
Declare Function GetSysColor Lib "user32" Alias "GetSysColor" (ByVal nIndex As Long) As Long
then get the current background color Windows uses with
Venster = GetSysColor(COLOR_3DFACE)
and use that value in making the background of a text label neutral if a choice is valid (red if it is invalid). Now the problem is that on several Windows color settings it gives a slightly different shade (usually a bit lighter).
Any idea WHY that happens ?
P.S. I wrote a small application with Rapid Q that has now become official where I work (just a small waterquality monitoring program)
2. Re: color difference
#816
Posted by: 2003-03-13 13:34:56
here's a screenshot of the program by the way
3. Re: color difference
#817
Posted by: 2003-03-13 13:37:34
Here's a screenshot of the program by the way. As you can see it is a simple form for entering data and graphing that data. The data is checked against specification limits and the cell color is changed accordingly.
Sorry I can't help you with the color problem, but I want to share your feeling of accomplishment. I made a few programs for the firm where I work too and... ain't it great to see other people working with your tools? To me it's a huge satisfaction, especially when they come out with that "YOU did that?" expression. Have a nice day.