1. Home
  2. Computing & Technology
  3. Delphi Programming

How to Browse Delphi's VCL Source Code

By Zarko Gajic, About.com

If you have a Delphi version that comes with the source code (YES! some Delphi versions include the full VCL / RTL source code), you can easily browse through it! Here's how:

  1. While in the Code Editor (editing your program's source code) press the CTRL key.
  2. Keep the CTRL pressed while moving the mouse over a Delphi's class name, keyword, method, procedure, etc...
  3. For example: drop a TButton on a form. Hold the CTRL key, move your mouse over the "TButton" word in the form's interface declaration. The TButton gets underlined.
  4. Click the underlined word.
  5. Magic: The "stdctrls" unit is displayed in the Code editor. Pointer placed on the implementation of the TButton class.
  6. Yes, what you are now looking at is the Delphi source code.
Note: while editing your own code, use the same technique to jump to, for example, a variable declaration - CTRL+Click it to see when and how it was declared.

Here are some more source code navigation tricks.

Delphi tips navigator:
» Remove the Windows Constraint on Minimum Form Size: Width and Height (112 / 118)
« How to Execute a JavaScript Code on a TWebBrowser Document

More Delphi Programming Quick Tips
Explore Delphi Programming
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Delphi Programming
  4. Coding Delphi Applications
  5. Delphi Tips and Tricks
  6. Delphi 2006 Tips
  7. How to Browse Delphi's VCL Source Code

©2009 About.com, a part of The New York Times Company.

All rights reserved.