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 anonymous methods architecture asp.net mvc C# California Change Manager COBOL CodeRage columbus columbus architecture group Delphi delphi prism Embarcadero entity framework Erlang functional programming generics givecamp halting problem humor InterBase javascript jqGrid jQuery links linq linq to sql memoize merb Mike Rozlog modeling mvc ndepend Nick Hodges orm poetry rails software archeology static analysis systems the dynamic web unit testing uris WebCategories
-
Recent Comments
- AL on join in LINQ to SQL and LINQ to Entities Considered Messy, Redundant
- AL on join in LINQ to SQL and LINQ to Entities Considered Messy, Redundant
- Surendran Bangalore on Generics, Commas, and Semicolons
- Surendran Bangalore on Generics, Commas, and Semicolons
- Eran on Using jqGrid with ASP.NET MVC: Search and Formatting
-
{ 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