Tuesday December 22, 2009
in TXmlDocument :: When using the TXMLDocument to create XML documents you might receive a nasty EOleException: This operation can not be performed with a Node of type PCDATA.
If you want the resulting XML to look "pretty" - so that each element node appears on its own line, indented appropriately to reflect its nesting in the node hierarchy, you might be adding the doNodeAutoIndent flag in the Options property of the TXMLDocument instance.
Read the full article to learn how to Fix the "This operation can not be performed with a Node of type PCDATA" when using doNodeAutoIndent
Related:
Monday December 21, 2009
in Delphi TIPS :: The WM_SYSCOMAND can be used to trap the restore window operation. When the form is maximized the "Maximize" button changes its look and operation. Clicking the restore button restores the window to its previous (normal, before it was maximized) position and size. By overriding (changing) the default "restore" action, you can for example, create a Delphi form that can be only mimimized or maximized.
Read the full article to learn How to Override Delphi Form's Restore Operation?
Related:
Friday December 18, 2009
in Delphi TIPS :: Record data types in Delphi represent a mixed set of elements. Each element is called a field; the declaration of a record type specifies a name and type for each field
As with any data type in Delphi, you can create a record type constant (a read-only "variable").
Read the full article to learn how to How to Declare a Constant Record in Delphi
Related:
Thursday December 17, 2009
in Delphi VCL :: 
Configuration forms often have a cancel button used to revert any edits to the edit controls back to original (initial) values. Here's how to implement such a mechanism in Delphi applications.
Read the full article to learn how to Implement "Cancel All Edits" for a Configuration-type Form in Delphi
Related: