In Delphi 2007, you may notice some newer color constants towards the end of the list, with names like clMenuBar and clMenuHighlight. Beware! These color constants aren’t supported on Windows 2000, and they render as black. Since the default menu text is also black, this makes the menus rather tough to read! If you use them then you should detect Win2000 (and possibly earlier OSs) in code and replace them with a supported constant such as clBtnFace.
-
Links
-
Tags
.NET architecture asp.net asp.net mvc business C# Change Manager CodeRage columbus columbus architecture group compilers debugging Delphi delphi prism Embarcadero entity framework Erlang functional programming generics givecamp html humor InterBase javascript jqGrid jQuery linq linq to sql math merb Mike Rozlog modeling mvc ndepend Nick Hodges orm rails security software archeology static analysis the dynamic web unit testing uris validation WebCategories
-
Recent Comments
- charan on How to Customize ASP.NET MVC Authentication
- Basic Authentication with WCF Web API Preview 6 | Chief of the System Blog on How to Customize ASP.NET MVC Authentication
- Metadata Exception in Entity Framework Connection Strings | Programmer Solution on Troubleshooting Entity Framework Connection Strings
- Cuneyt Sina Koca on What is Homomorphic Encryption, and Why Should I Care?
- خواندنی های 18 بهمن 89 | alisite on In LINQ, Don’t Use Count() When You Mean Any()
-
{ 2 } Comments
Good to know, although I always thought Delphi should detect that for us behind the scenes and gracefully degrade. There were a few other times I had seen OS version specific features. Like the new Vista dialogs, they just throw an exception if you are not on Vista.
it’s better to use the following check:
var
B: BOOL;
….
if SystemParametersInfo(SPI_GETFLATMENU, 0, @B, 0) and B then {use clMenuBar} else {use clBtnFace};
Post a Comment