internal static string GetSystemColorName(TSystemColor SysCol) { switch (SysCol) { case TSystemColor.ActiveBorder: return("activeBorder"); case TSystemColor.ActiveCaption: return("activeCaption"); case TSystemColor.AppWorkspace: return("appWorkspace"); case TSystemColor.Background: return("background"); case TSystemColor.BtnFace: return("buttonFace"); case TSystemColor.BtnHighlight: return("buttonHighlight"); case TSystemColor.BtnShadow: return("buttonShadow"); case TSystemColor.BtnText: return("buttonText"); case TSystemColor.CaptionText: return("captionText"); case TSystemColor.GrayText: return("grayText"); case TSystemColor.Highlight: return("highlight"); case TSystemColor.HighlightText: return("highlightText"); case TSystemColor.InactiveBorder: return("inactiveBorder"); case TSystemColor.InactiveCaption: return("inactiveCaption"); case TSystemColor.InactiveCaptionText: return("inactiveCaptionText"); case TSystemColor.InfoBk: return("infoBackground"); case TSystemColor.InfoText: return("infoText"); case TSystemColor.Menu: return("menu"); case TSystemColor.MenuText: return("menuText"); case TSystemColor.ScrollBar: return("scrollbar"); case TSystemColor.DkShadow3d: return("threeDDarkShadow"); case TSystemColor.Light3d: return("threeDFace"); case TSystemColor.HotLight: return("threeDHighlight"); //case TSystemColor.: return "ThreeDLightShadow"; Can't find an equivalent. //case TSystemColor.DkShadow3d: return "ThreeDShadow"; case TSystemColor.Window: return("window"); case TSystemColor.WindowFrame: return("windowFrame"); case TSystemColor.WindowText: return("windowText"); } return(null); }
internal static int GetSysColor(TSystemColor sysc) { switch (sysc) { case TSystemColor.ScrollBar: return(0); case TSystemColor.Background: return(1); case TSystemColor.ActiveCaption: return(2); case TSystemColor.InactiveCaption: return(3); case TSystemColor.Menu: return(4); case TSystemColor.Window: return(5); case TSystemColor.WindowFrame: return(6); case TSystemColor.MenuText: return(7); case TSystemColor.WindowText: return(8); case TSystemColor.CaptionText: return(9); case TSystemColor.ActiveBorder: return(10); case TSystemColor.InactiveBorder: return(11); case TSystemColor.AppWorkspace: return(12); case TSystemColor.Highlight: return(13); case TSystemColor.HighlightText: return(14); case TSystemColor.BtnFace: return(15); case TSystemColor.BtnShadow: return(16); case TSystemColor.GrayText: return(17); case TSystemColor.BtnText: return(18); case TSystemColor.InactiveCaptionText: return(19); case TSystemColor.BtnHighlight: return(20); case TSystemColor.DkShadow3d: return(21); case TSystemColor.Light3d: return(22); case TSystemColor.InfoText: return(23); case TSystemColor.InfoBk: return(24); case TSystemColor.HotLight: return(26); case TSystemColor.GradientActiveCaption: return(27); case TSystemColor.GradientInactiveCaption: return(28); case TSystemColor.MenuHighlight: return(29); case TSystemColor.MenuBar: return(30); } return(-1); }