tags:

views:

402

answers:

2

I can not get clHightlight and clHightlightText colours to work in Delphi 2007, when I compile I get the errors:

[DCC Error] GlobalFunctions.pas(412): E2003 Undeclared identifier: 'clHightlightText'
[DCC Error] GlobalFunctions.pas(413): E2003 Undeclared identifier: 'clHightlight'

But I have included the Graphic unit and in the same function I have clWindow,clWindowText,clInfoBk, clInfoText and they all work fine.

clHightlightText appears in the CodeGear Documentation (under Graphics.TColor) along with clwindow and co.

Any idea why this is?

Info:

Delphi 2007 (update 3 [I think])

Windows XP (sp2)

+3  A: 

I think you have a typo in the constant name. You should use:

clHighLight and not clHigh t Light.

From graphics:

clHighlight = TColor(clSystemColor or COLOR_HIGHLIGHT);
clHighlightText = TColor(clSystemColor or COLOR_HIGHLIGHTTEXT);
Gamecat
Well that's embarrassing :P I showed it to a co-worker too.
Re0sless
Nope, not embarassing, it happens to all of us. Just shows you are human to ;-).
Gamecat
That's where CTRL+Space is useful!
Gerry
+1  A: 

Borland's help article 'TColor type' is failed :(

Please manual write it or copy - clHighlightText :)