Setcolor() Issue

133 views
Skip to first unread message

Cotswold GB

unread,
Apr 5, 2024, 3:55:33 AM4/5/24
to Harbour Users
Hello &All
The Clipper 5.3 Language Reference in Harbour Core index after TBROWSE() states:
Color Numbers: Setcolor()
    Supports Color Letter combinations but NOT Color Number Combinations

Does appear to be incorrect and would explain why I've been experiencing
strange colour issues. Additionally, the SetColor() Is supposed to return
the current color set. But is not always the same as the variable itself,
which is really odd. In some cases the Alpha code is actually changed.
Often the '+' is replaced with a '*' or even removed.

I have attached a copy of a program to display the above.
-----------------------------------------------------------------------
Further to the above and as way around the alpha color code problems,
to use other pastel shades I have used standard RGB() colours by following
the  the very helpful and useful posting in Changing Colors by Paul Smith
https://groups.google.com/g/harbour-users/c/eq-NK8YkI0o/m/ODD9qfnOAAAJ

( I will add, maybe bear in mind that people who are colour blind, have
difficulties with reds and greens. It is something I had no idea about for
years. Afterwards I changed all my error message popups from white on red
to black on yellow.)
ColorTest.prg
Reply all
Reply to author
Forward
0 new messages