You are on page 1of 3

Delphi Programming Share Print

RTL reference|Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link To

Mysterious Delphi
Uncovering hidden Delphi features. See how to set up some secret registry settings that change the standard behavior of the Delphi IDE.
Join the Discussion
Working with Delphi is a whole lot more fun if we bend some of the "rules". Like many other complex tools (applications) Delphi has some "...the question I have for
undocumented settings that can really help us code faster and with more fun. Let's find out where is the secret backdoor for getting Delphi any of you who used Delphi
to expose it's secrets. prior to version 5, what
purpose is there for me,
someone who does mostly
Messing with the Registry database programing, of
All secret settings are stored under the Delphi main key which is: HKEY_CURRENT_USER\Software\ Borland\Delphi\5.0 in the Windows using version 5 or should I
stick to Delphi 1/2/3/4..."
Registry database. I'll call this key MDK for short.
Why Delph 5?

To modify Delphi registry entries, start the Registry Editor (regedit.exe). NT users should run regedit32.exe. Since we'll be modifying and Related Resources

adding registry entries (keys and values), firstly create a copy of your registry - in case that something goes wrong. To add a new key • Humor/Fun with Delphi
• Coding the Registry
under the Delphi main root select Edit|New|Key. The new key appears with a temporary name - type a name for the new key, and then
• Extending the IDE
press Enter to confirm it. To add a new value under the Delphi main root (or your newly added key) select Edit|New|String (or Binary or
Dword) value. The new value appears with a temporary name and default value - type a name for the new value; double-click the value to From Other Guides
• Backup the Registry
change it with the Value Data box. Most values are stored as strings, and boolean values are represented as '1' (True) and '0' (False). In
order to use secret features you'll need to restart Delphi. Any time: to disable boolean values set them to 0 and restart Delphi. Elsewhere on the Web
• Undocumented Delphi
Note: none of the secrets exposed in this article are guaranteed to remain in future versions of Delphi. In other words: there are no Registry Entries

guarantees with undocumented settings - use those at your own risk. If safety is a concern for you, you should stick to the documented
Delphi settings.

FontNamePropertyDisplayFontNames
Adding "FontNamePropertyDisplayFontNames" string with value "1" to MDK\Extras will cause the IDE to display a graphical drop down list of fonts.

AutoPaletteSelect
Adding "AutoPaletteSelect" string with value "1" to MDK\Extras will cause a tab on the component palette to be automatically selected when the mouse is hovering
over it.
AutoPaletteScroll
Adding "AutoPaletteScroll" string with value "1" to MDK\Extras will cause a list of components on the tab on the component palette to scroll when the mouse is
over either the left or right palette scroller. This will happen when icons don't fit in a component page.

Editor.DefaultHeight and .DefaultWidth


Adding "DefaultHeight" string with value "400" and "DefaultWidth" string with value "600" to MDK\Editor will set default editor width and height, when Delphi
starts a new project.

ShowCodeInsiteError
Adding "ShowCodeInsiteError" string with value "1" to MDK\Extras will cause Code Insight Errors to be shown in the Message view window.

Get the Good Stuff


Naturally, this is far from a complete list of Delphi secrets. There are certainly some Delphi secrets that are yet to be discovered: would you be the lucky one? If
you know of some other secret setting please share it on the Delphi Programming Forum.

More Delphi
— Learn another routine every day - RTL Quick Reference.
— Download free source code applications and components.
— Talk about Delphi Programming, real time.
— Link to the Delphi Programming site from your Web pages.
— Tutorials, articles, tech. tips by date: 2001|2000|1999|1998 or by TOPIC.
— NEXT ARTICLE: Your first MP3 Delphi player.
See how to build a full-blown mp3 player with Delphi in just a few seconds. Even more: get the ID3 tag information from a mp3 file and change it!
Stay informed with all new and interesting things about Delphi (for free).

Got some code to share? Got a question? Need some help?

New posts to the Delphi Programming forums:

Memory leaks using XML


Control which application is on top via
trayicon + progressbar + text (4 letters
Explore Delphi Programming
Free Delphi Programming Newsletter! Must Reads
First Time Here? What is Delphi?
Enter email address
How to Start a New Delphi
Project
By Category
Delphi Tutorials / Online Courses
Getting Started with Delphi Advanced Delphi Techniques
Delphi Tips, Tricks, Code
Coding Delphi Applications Coding Internet / Network
Snippets
Build Database Applications Learn Delphi for .NET
What Happened to "Borland
Source Code Projects Best Components and Tools
Delphi"?
Using VCL Components Essential Tools and Utils
Using Data (DB) Controls
Most Popular
Virtual Key Codes
Network traffic monitor
Execute External Program, File
A Beginner's Guide to Delphi
Date/Time routines - Delphi
Programming

You might also like