VCL Sourcery

This was a UK BUG Masterclass held on 4th April, 2000 in Hammersmith, England.

This Masterclass looks under the hood of Delphi, digging down into advanced topics. It runs from 10 am until 6pm, with the following agenda.

10:00 a.m. Introduction

Prospecting For Gold In The Delphi Source

This section involves looking through some of the source files for the RTL and VCL, looking for not so well known things that can be very useful to Delphi programmers.

11:30-11:45 a.m. Break

IDE Tips

The IDE has many shortcut keys that go unused. For example

There are numerous undocumented registry entries that can make it more usable. For example.

There are a number of other facilities that can prove very useful that are never used by the majority of Delphi programmers.

1:00-2:00 p.m. Lunch

Run-Time Type Information

RTTI exists in all Delphi applications, but is typically only used by the VCL code and the Delphi IDE. This section looks at what information RTTI includes and looks for situations where it can simplify certain programming tasks.

4:00-4:15 p.m. Break

Language Tips

This section focuses on the Object Pascal language as used by Delphi. Because of the flexibility of the language, there are many cases where cumbersome statements can be rewritten in a more concise and often more elegant way. For example:

There are also a number of "dirty" tricks that can be used to accomplish tricky tasks. For example:

This section will look at as many of these sorts of things as we can squeeze in.