Re: Changing properties

Posted by RussCAp12602 on April 19, 2008

In Reply to Changing properties posted by Marc M on March 12, 2008

I suggest that instead of using clBlack, use clWindowsText, unless the background of the component in question has been set to something other than the current Windows background color.

Far too much software does not pay attention to the defaults used by Delphi (or other development environments), and simply set text color to clBlack.

Unfortunately, this renders the software difficult to use by a fairly significant segment of the population (including myself) who are visual impaired. For example, I use a variant of High Contrast Black, which uses a black background and white text. In order to use a lot of software, I have to switch to the Standard WIndows theme. But then the bright glare of the screen results in eye strain and limited tolerable use time.

My rule is that if you set ANY color on a component, then make sure that color will contrast with the component's background color.

Imagine what would happen if someone decided to use a custom theme which had a clRed background!

Related articles

       

Follow Ups