Kanade's Delphi Stuff
Delphi Tips, Sample code and Tools
Copyright © 1997-2004, Sanjay Kanade
 
  Tips and Tricks on Delphi
Please read the DISCLAIMER before you use any of the tips from this web site. Go to main index
  Delphi Tips: IDE
Tip 54:  Saving customized IDE tool bar
(modified: 09 Jan 2002)


Tip 59:  Adding pictures to forms
(modified: 12 Jun 2002)


Tip 77:  Disappearing packages
(modified: 21 Mar 2004)


  54: Saving customized IDE tool bar
Date added/modified: 09 Jan 2002

One problem that often faced in Delphi 5: I lost my IDE tool bar customization and had to do it again. One day, I decided to see where it is stored. It is not in any of the files. It is in the registry. So, to save it, do this:

Start Regedit and select the following key: HKEY_CURRENT_USER\Software\Borland\Delphi\5.0\Toolbars

Export it to a file on your disk and keep it safe. Now, whenever you lose your toolbar, stop Delphi. Then, simply double-click the saved file in Explorer and your toolbar will be restored.

  59: Adding pictures to forms
Date added/modified: 12 Jun 2002

You may often need icon of the product on the About form. In such a case, don't use the .ICO file but rather use a .BMP file so that you can stretch it to any larger size. To put such a picture bmp on your form, add a TImage component. To load a picture bmp, double-click on it and load the .bmp file. Then, if you want it enlarged to the default timage size, set stretch property to true.
Sometimes, you may want to make certain color in the image to transparent so that it looks good on the dialog panel. If so, edit the picture bmp to put that color pixel in the lower left corner. Then, reload the picture and set the transparaent property to true.

  77: Disappearing packages
Date added/modified: 21 Mar 2004

Recently, I had this annoying problem where one of my packages was always unchecked when I started Delphi. I had to go into Component--Install Packages and put it ON every time I started Delphi. I tried all combinations, including default project, default options, etc. But, no luck.

Finally, I decided to see the current user registry keys for Delphi and found a section "Disabled Packages" in which this package had been put because at one time I had said "No" to the package missing, reload message when Delphi was starting up. I deleted that entry from the registry and the problem was fixed!



 

Copyright 1995-2004, Sanjay Kanade. All rights reserved.
All trademarks and copyrights belong to their respective owners.