Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / color difference

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. color difference
#815
Posted by: 2003-03-13 13:29:50
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)
Message2. Re: color difference
#816
Posted by: 2003-03-13 13:34:56
here's a screenshot of the program by the way
Message3. 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.
Message4. Re: color difference
#818
Posted by: cajino 2003-03-13 15:57:32
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.

Cajino
Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
 
 
 
 
 
 
 
 
 
 
© Fri 2024-3-29  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0