News

Version 1.4.1 of the Clipboard Viewer Component has been released to bring the component up to date. It can now be compiled with Delphi XE5 and supports RTL and VCL unit namespaced when compiled with Delphi XE2 and later. The component has also had its license updated from Mozilla Public License v1.1 to v2.0.

The Hot Label Component from the Delphi Library has just been updated to v2.2.0. This version adds a new "visited" state to the label that emulates the HTML/CSS visited link style by (optionally) causing the label to display in a different font (e.g. colour and style) once the label's URL has been visited. The release also fixes compile problems with Delphi XE5 and some other minor bugs and also updates the code. The component is VCL only but compatible with 32- and 64-bit Windows compilers. The source code is now licensed under the Mozilla Public License v2.0.

I'm considering changing the licensing arrangements for source code in the Code Snippets Database. At present licensing is not clear and I'm thinking of changing the code to use the MIT License. The linked blog post explains why and seeking comments.

The v3.0.0 release of the Environment Variables Unit is now available. This is a major revision. The old environment variables component and all the public helper routines are now deprecated. They have been superseded by a new static class that interogates, enumerates and updates the current process' environment variables. It also fixes errors in the old deprecated code. The older code has been rewritten to call into the new static class where possible. The old WinHelp file has been removed. Finally two new demo have been added to the project. Both of these are available in VCL or FireMonkey versions.

Three new tips have been added to the Delphi Tips section. They are #230 "Optimised replacements for DecodeDate and EncodeDate", #231 "How to retrieve the CPU vendor ID" and #232 "How to find the minimum and maximum of three integers".

v1.1.0 of the Delphi Code Library's Resource File Unit has been released. This release adds an enumerator to the resource file class and a couple of methods and a property to the resource entry class. It also fixes compiler directives to work with Delphi XE5 and updates the unit to use unit namespaces with Delphi XE2 and later. The unit is now licensed under the Mozilla Public License v2.0. All documentation is now online.

CodeSnip 4.8.5 has been released. This update fixes a bug in the compiler directives that are written to generated source files when the user has elected to generate $WARN directives. The bug meant that affected code could fail to compile with Delphi XE5. This is a recommended update.

Updates two more sub-projects from the Delphi Code Library have been released today to work round the failure to compile, by default, of the $IFEND compiler directive in Delphi XE5 and later. The latest projects to be updated are the Extended String Property Editor (updated to v2.0.3) and the Stream Extension Classes (v3.1.2).

The Window State Components have been updated once more, this time to version 5.6.0. This new releases adds a new RootKeyEx property to TPJRegWdwState that acts as an alias for the existing RootKey property with the difference that it exposes friendly names for supported registry hives. This make setting the registry root key in Delphi's object inspector more intuitive. A related OnGetRegDataEx event enables the registry root key to be changed on-the-fly using the same symbols used by RootKeyEx.

The HKEY Property Editor has been deprecated and removed from the Delphi Code Library. This is because the editor behaves erratically, working correctly in some Delphi installations while being ignored by the property editor in other installations. Although the property editor has been updated to work with later Delphi compilers you are strongly advised NOT to use it.