Return
Free or cheap programming languages
All of my freeware apps

Delphi MY DELPHI-UTILITIES

Jump to: Friend of Delphi | Delphi Comment | Delphi Key Values


Delphi Project Launcher. It's free - check it out!

My freeware help file editor. It's a delight to work with! No need for Word! Have a look

Friend of Delphi v1.2 - Download (249 kb) - Freeware - Released June 22, 2002

Main window

What is it?
This is a small collection of utilities rolled into one program:
Add or remove comment characters (//) to/from a block of code lines, get the key value of any key, a messagebox wizard, a comment frame wizard, a color picker, a utility to update the paths in the dsk file after moving/copying a project, a place to collect one-line snippets etc.

Get key values
Click Friend of Delphi (to activate it) and then press a key on your keyboard. On Friend of Delphi will then appear this information: the decimal value of the key, the virtual keycode (VK_CODE) and the name of the key.

Save and retrieve one-line snippets
Here you can keep web addresses, special characters, copyright information etc.

The red button
Click the red button to get the value of the mouse button (i.e. mbRight is the right mouse button).
You can configure the button to open the Messagebox wizard, the Color picker, to exit etc.
Look in the 'Red button...' menu.

Add/remove comment chars
To add or remove '//' to/from a number of code lines at once just select and copy the code lines (Ctrl+C). Then click the plus button to add //, or click the minus button to remove //. Then paste the lines back (Ctrl+V).

The menu
Right-click the app to get to the menu. From there you can select: Uninstalling
Friend of Delphi doesn't touch the registry at all. So to uninstall just delete its folder.


Delphi Comment v1.2 - Download (143 kb) - Freeware

If you use '//' for your comments, this utility is useful. Use it to put or remove '//' from a number of code lines at once. Lies on top and takes up very little room on the screen.

Works like this:

Select and copy the code lines (Ctrl+C) and click the plus button to add //, or click the minus button to remove //. Then paste the lines back (Ctrl+V).



The button on the right side removes extra spaces in parentheses in the code. This code:
if Pos( '%', s ) > 0 then
     Delete( s, Pos( '%', s ), length( s ) );
   if ( ( length( s ) > 0 ) and
       ( s[1] = '"' ) ) then
     Delete( s, 1, 1 );
   if ( ( length( s ) > 0 ) and
       ( s[length( s )] = '"' ) ) then
     Delete( s, Length( s ), 1 );
   while ( ( length( s ) > 0 ) and
          ( ( s[length( s )] = #32 ) or
           ( s[length( s )] = '"' ) ) ) do
     Delete( s, Length( s ), 1 );
will be changed to look like this:
if Pos('%', s) > 0 then
     Delete(s, Pos('%', s), length(s));
   if ((length(s) > 0) and
       (s[1] = '"')) then
     Delete(s, 1, 1);
   if ((length(s) > 0) and
       (s[length(s)] = '"')) then
     Delete(s, Length(s), 1);
   while ((length(s) > 0) and
          ((s[length(s)] = #32) or
           (s[length(s)] = '"'))) do
     Delete(s, Length(s), 1);


Delphi Key Values v1.2 - Download (161 kb) - Freeware

When this utility has the focus you can hit a key (on your keyboard) and get the key value. That's useful when you have to catch key values in events. It shows key value for ALL keys, except the Print Screen key.
Click the red button to get the value of the mouse button (i.e. mbRight is the right mouse button).
Right-click it to get to the menu. From there you can choose Virtual-key codes, which is a list of all the virtual-key codes (VK_CONTROL, VK_ESCAPE etc) that Windows supports.
Lies on top and takes up very little room on the screen.




Updated October 31, 2005 (insignificant changes to link texts)
© 2001-2005 Finn Ekberg Christiansen