News for January 2011

   
Revised and corrected tip #160 that demonstrate the CopyFileEx API function
Tip #160 was an untested proof of concept. It has now be overhauled to work correctly and to describe the process of building a demo application more clearly.
20 January 2011
Released CodeSnip v3.8.8
Release 3.8.8 adds the ability to specify how old news items have to be before they are no longer displayed in the CodeSnip News dialog box. The default is 92 days. Users can now specify any number of days between 14 and 365.
19 January 2011
400th routine added to Code Snippets database
Three new routines have been added to the Code Snippets database, taking the total to 400! The new routines are all concerned with manipulating file extensions. They are: DefaultFileExt, ForceFileExt and HasFileExt.
19 January 2011
New Registry category with 7 new routines added to Code Snippets database
A new "Registry" category has been added to the Code Snippets database containing seven new routines: RegDeleteValue, RegKeyList, RegParsePath, RegReadString, RegValueExists, RegValueList and RegWriteString. These routines are modifications of code provided by Guru Kathiresan. The existing GetRegistryString routine has been moved from the "Windows System" category to the new category.
18 January 2011
Three overloaded image adjustment routines added to Code Snippets database
Three new overloaded AdjustImage routines have been added to the database, along with some associated type and constant definitions. Any one or more of the brightness, contrast, tint, saturation and gamma values of the image can be adjusted by the routine. The image can also be inverted. The overloaded versions operate on canvases and bitmaps. Based on code submitted by Montor.
17 January 2011
Delphi tip #79 updated
An alternative solution for the tip "How to define a minimum size for a component" has been added. This solution was provided by Montor.
16 January 2011
Delphi tip #24 updated
An second solution to the tip "How to get a screen shot of a control" has been added. This solution was provided by Montor.
16 January 2011
Three new Code Snippets database routines
Three new routines have been added to the Code Snippets database. There are two overloaded ScaleBitmap routines that scale up or down the size of a bitmap, using high quality half-tone stretching. There is also a support routine named ScaleRect that resizes a rectangle according to a given scale factor. Thanks to Montor for contributing the code on which these routines are based.
16 January 2011
Two new Code Snippets added to database
Two new code snippets by Guru Kathiresan have been added to the Code Snippets database: LastChar gets the last character of a string and StripLastChar removes the last character of a string. There are numerous snippets by this new contributor still to come.
15 January 2011
New Delphi Tip added
A new tip from Mr K Smith: "How to fade forms in and out".
15 January 2011
v4.1 of Clipboard Format Spy released with full Unicode support
This long overdue new release of the Clipboard Format Spy program now has full Unicode support. Recompiled with Delphi 2010.
04 January 2011
New Delphi tip added
The first update of the new year is a tip from Montor named "How to make a single instance of your application". Pretty self explanatory really!
02 January 2011