Useful Articles for designing software with Delphi
Here are some Useful Articles for designing and coding software in Delphi.
They range from early Delphi 1 techniques to current VCL and TMS WEB Core code, and
most include working source code.
- Extending Project History List in Delphi 1
Delphi 1 tips, including extending the IDE list of recently closed projects, showing the primary index in DataList, and controlling the cursor during long processes. - Using Form Components With Delphi 1
Create reusable form components in Delphi 1 from a unit of form definitions, so common form code is written once and inherited. - Better Calculated Fields in Delphi
Calculated fields you can read and write at any time, without an OnCalcFields handler or edit mode, using interposer classes. - How to convert Web colour to Delphi or vice versa?
Convert between HTML hex colours and Delphi / Windows TColor values in either direction. - How to create a virtual table on TMS Webcore XData Client?
Implement a virtual (in-memory) table on a TMS WEB Core XData client. - How to handle nil pointers in TMS Webcore?
Handle nil procedure pointers safely in TMS WEB Core, and the difference between procedure pointers and anonymous methods. - Convert Left Click to Right Click in TMS Webcore
Open context menus from a left click in TMS WEB Core. - PBS Delphi Logger - Thread-safe logging with multiple outputs
Thread-safe logging to files, console or a TMemo, with daily rotating log files and automatic pruning. Full source code available. - Input Sanitization and Validation for Delphi
A single-unit class that strips HTML, escapes SQL and normalises whitespace in user input. Full source code included. - Delegating an Interface to a Property in Delphi (implements)
How the implements keyword lets a class delegate an interface to a property, with a working example, the compiler rules and the reference-counting pitfalls.
Articles for designing and coding software with Delphi