News for 2013

   
6 assorted snippets added to the Code Snippets Database
A rag-bag of six unrelated snippets has been added to the Code Snippets Database. The snippets are: GetDefaultPrinterName - returns name of any default printer on the computer; DirPurge - deletes a directory and all its contents; FileInProgramDir - returns the path to a given file, located in side the same directory as the program; SafeFreeEncoding - frees a TEncoding object unless it is one of the standard encodings; IsIEInstalled - checks if Internet Explorer is installed; EnglishColorName - returns the name of a known colour in American English.
27 March 2013
Released v3.0 of the Console Application Runner Classes
v3.0 of the Console Application Runner Classes project. The main change is the removal of the PJPipe, PJPipeFilters and PJFileHandler units following their inclusion in the recently released I/O Utility Classes project. The remaining PJConsoleApp unit has been prepared for use with Delphi XE2 and later - the code's dependence on the VCL has been removed to permit its use in both VCL and FireMonkey projects. In addition the code now compiles and works correctly with either 32 or 64 bit Windows targets. Demos have been tidied up and three new FireMonkey demo projects have been added.
25 March 2013
I/O Utility Classes now documented online
The documentation of the new I/O Utility Classes has now been completed in the DelphiDabbler wiki.
23 March 2013
New I/O Utility Classes Delphi Library project (v1.0.0)
A new "I/O Utilities Classes" project has been added the Delphi Library. This contains the PJPipe, PJFileHandle and PJPipeFilters units taken from the Console Application Runner Classes project. I've done this because these classes are of more general use than simply helping to interface with console applications. The units will be removed from the next release of the Console Application Runner Classes project. The units have been updated to work correctly with both the Windows 32 and 64 bit Delphi XE2 and later compilers. The code is suitable for use with both VCL and FireMonkey projects.
21 March 2013
New 3rd party "PrintScreen01" program.
PrintScreen01 has been added to the 3rd party programs page. This program, by Bill Hall, is a simple utility that allows rapid copying (and saving to file) of any desktop screenshots. Full source code is included.
16 March 2013
Four new tips from the former Delphi Pool
Four new tips from the former Delphi Pool website have been added to the Delphi Tips database, starting from tip #214. They are: tip #214, "How to create a GUID"; tip #215, "How to create a greyscale palette"; tip #216, "What is a DispInterface?" and tip #217, "The purpose and use of DispInterface".
13 March 2013
Added two new maths routines to the Code Snippets Database
Two new routines have been added to the Mathematics category of the Code Snippets database. The first, Pow, raises an integer to value to a non-negative integer power. The second snip is named SAR and performs an arithmetic right shift operation on an integer (Pascal's 'shr' is a logical left shift operator). Don't forget that new snippets now don't display in the old Code Snippets online viewer - you need the CodeSnip program or the new viewer at http://snippets.delphidabbler.com/cs to see them.
27 February 2013
CodeSnip v4.3.0 released
CodeSnip v4.3.0 has just been released. There are three main new features. (1) The directory used to store user-defined snippets database can now be changed. You can use this to place the database in a folder that will be backed up, for example Dropbox or GoogleDrive. (2) The default RTL namespaces can now be configured when test compiling with Delphi XE2 and XE3 and (3) Custom syntax highlighters can now be saved with a unique name for later re-use.
27 February 2013
Three new fraction related snippets added to Code Snippets Database
Three new routines for working with fractions have been added to the Code Snippets Database. NormaliseFractionSize ensures that the numerator of a fraction carries the sign while the denominator is always positive. The remaining two routines are for formatting a fraction as a string. FractionToStr formats a given numerator and denominator while FractionToStrEx does the same thing but also gives the option of normalising the fraction's sign.
16 February 2013
CodeSnip bug fix v4.2.1 released
CodeSnip release 4.2.1 fixes a bug in the new Favourites dialogue box, introduced in v4.2.0. The dialogue box was displaying the old-style unique snippet name but now displays the correct snippet display name.
14 February 2013
CodeSnip v4.2.0 released, now with Favourites
CodeSnip v4.2.0 has now been released. It adds support for flagging your frequently used snippets as favourites and provides easy access to them by means of a non-modal dialogue box that can float alongside the main window. Also changed Duplicate Snippets dialogue box to enable snippet display name to be changed and to have option of opening the duplicated snippet in the Snippets Editor. Some minor tweaks to the database stats displayed in the status bar and a minor bug fix complete the changes.
07 February 2013
CodeSnip bug fix v4.1.1 released
CodeSnip v4.1.1 has been released. This is a maintenance release that fixes a few bugs in v4.1 that relate syntax highlighter and source code generation. For full details see the change log. Once again, both a portable and standard edition have been released.
30 January 2013