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 mvc business C# Change Manager CodeRage columbus columbus architecture group craig gentry Delphi delphi prism Embarcadero encryption entity framework Erlang functional programming generics givecamp homomorphic encryption html humor InterBase javascript jqGrid jQuery jQuery BBQ 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 WebCategories
-
Recent Comments
- wamda on A Math Primer for Gentry’s Fully Homomorphic Encryption
- wamda on A Math Primer for Gentry’s Fully Homomorphic Encryption
- Bryce on Projecting Onto a Presentation Model with the Entity Framework and ASP.NET MVC
- Bryce on Static Analysis and Generated Code
- Roland Bengtsson on Everything You Need to Know About InterBase Character Sets
-
{ 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