Category Archives: Programming

Windows 7 Previews – the Delphi Way

In the ancient days of Windows XP and Delphi 7 I used to provide a preview of the proprietary file content inside the file open dialog of one of my applications. This was accomplished by deriving from TOpenDialog, just like … Continue reading

Posted in Delphi, Programming | 12 Comments

On Upgrading Delphi

Back from Delphi Developer Days (Kudos to Marco and Cary) and after cleaning up the mess in my inbox I would like to share some thought I had during one of the sessions named “Delphi: Today and Tomorrow”. Some of … Continue reading

Posted in Delphi, Programming | 28 Comments

Synchronize and Queue with Parameters

In Delphi’s TThread class there is Synchronize to call a method in the context of the GUI thread. This is necessary in case, for example, you want to update a progressbar or a status label in a form, because the … Continue reading

Posted in Delphi, Programming | 12 Comments

The Visitor Pattern – Part 4

The interface approach introduced in Part 2 of this series and extended in Part 3 did cover most of our needs. But there is nothing that can’t be done better with the right tools.

Posted in Delphi, Programming | 4 Comments

The Visitor Pattern – Part 3

In Part 2 of this series we learned about a more flexible implementation of the Visitor Pattern than the traditional approach. But we can do better.

Posted in Delphi, Programming | Comments Off

The Visitor Pattern – Part 2

In Part 1 of this series we learned about the benefits of the Visitor Pattern and saw a basic approach according to the GoF description. As clean and elegant the visitor pattern might look in the first place, it nonetheless … Continue reading

Posted in Delphi, Programming | 2 Comments

The Visitor Pattern – Part 1

Some of you might have already heard of the Visitor Pattern, especially if you have read the GoF book Design Patterns, but do you really use it? Do you use it often? The common answer to this question is No. … Continue reading

Posted in Delphi, Programming | 1 Comment

“simulating a computer with an infinite amount of memory”

Thanks to this article by Raymond Chen we can read what garbage collection really is and (perhaps even more valuable) what it is not. I don’t want to start a new flame war about garbage collection (and even when – … Continue reading

Posted in Delphi, Programming | 6 Comments

A Magical Gathering – Part 2

From Part 1: take an enumerator, mix it with a class helper and pour it over an invokeable custom variant There it is again. What is he just talking about? Well, it took me a while to find that thing, … Continue reading

Posted in Delphi, Programming | 6 Comments

A Magical Gathering – Part 1

Sometimes combining different programming techniques reveals the hidden beauty of a programming language. A few years ago I was able to create such a thing with some older and newer language features. The outcome revealed some kind of magic that … Continue reading

Posted in Delphi, Programming | 1 Comment