// esto debe compilarse incluyendo el manifest ...
function Main()
local oDlg, i
local aSay[42]
local aColors := { "COLOR_SCROLLBAR" ,;
"COLOR_BACKGROUND" ,;
"COLOR_ACTIVECAPTION" ,;
"COLOR_INACTIVECAPTION",;
"COLOR_MENU" ,;
"COLOR_WINDOW" ,;
"COLOR_WINDOWFRAME" ,;
"COLOR_MENUTEXT" ,;
"COLOR_WINDOWTEXT" ,;
"COLOR_CAPTIONTEXT" ,;
"COLOR_ACTIVEBORDER" ,;
"COLOR_INACTIVEBORDER" ,;
"COLOR_APPWORKSPACE" ,;
"COLOR_HIGHLIGHT" ,;
"COLOR_HIGHLIGHTTEXT" ,;
"COLOR_BTNFACE" ,;
"COLOR_BTNSHADOW" ,;
"COLOR_GRAYTEXT" ,;
"COLOR_BTNTEXT" ,;
"COLOR_INACTIVECAPTIONTEXT",;
"COLOR_BTNHIGHLIGHT" }
DEFINE DIALOG oDlg FROM 1, 1 TO 46, 130 ;
TITLE "Colores de Windows"
@ 10,10 FOLDER oFld PROMPT "1-99", "100-199" OF oDlg PIXEL SIZE 200,175
FOR i := 1 TO 21
@ i, 02 SAY aSay[(2*i)-1] PROMPT STR(i-1,2)+ " "+ aColors[i] OF oFld:aDialogs[ 1 ]
@ i, 18 SAY aSay[2*i] PROMPT " " SIZE 30, 8 ;
COLOR GetSysColor(i-1), GetSysColor(i-1) OF oFld:aDialogs[ 1 ]
aSay[2*i] :=lTransparent:= .f.
NEXT
FOR i := 1 TO 21
@ i, 44 SAY aSay[(2*i)-1] PROMPT STR(i-1+21,2)+ " "+ aColors[i] OF oDlg
@ i, 60 SAY aSay[2*i] PROMPT " " SIZE 30, 8 ;
COLOR GetSysColor(i-1+21), GetSysColor(i-1+21) OF oDlg
NEXT
ACTIVATE DIALOG oDlg
return nil