Preferences - Source Code

Top  Previous  Next

 

On the Source code tab page, select the action taken when double-clicking on a line in the report viewer.

 

clip0015

 

Double-clicking a line in a report gives this action

These options are available:

 

No action

Nothing happens when double-clicking.

 

The source file is opened and focused in a source code viewer  (default)

If you want to quickly view the source code line, this is a convenient option. The file is opened in a source code viewer inside PAL.

 

The source file is opened and focused in the Delphi IDE

If Delphi is running, control is transferred to the source file in the code editor. This option works with Delphi 5, 6, 7 and 8.

 

The source file is opened in an external application

If this option is selected, you must enter a complete path to the application, and a command-line.

 

Path

Enter a complete path to the application, e.g "C:\WINDOWS\Notepad".

 

Command

Enter a command-line that is supplied as a parameter. In the command-line, use "%1" for the source file path and "%2" for the row number. These strings will be substituted for the real values when the call is done.

 

For example, when configuring Notepad to open the source file, enter "C:\WINDOWS\Notepad" as path, and "%1" for command.

 

 

Interact with these Delphi IDEs

When installing Pascal Analyzer, the installation program registers the PalWiz wizard. The wizard enables Delphi to show the relevant code module when double-clicking on a report line in Pascal Analyzer. For all installed versions of Delphi 5, 6 and 7, the wizard will be registered under the registry key:

 

HKEY_CURRENT_USER\Software\Borland\Delphi\x.0\Experts

(exchange “x” for the version number).

 

For Delphi 8, this registry key is used instead:

HKEY_CURRENT_USER\Software\Borland\BDS\2.0\Experts

 

For Delphi 2005, this registry key is used:

HKEY_CURRENT_USER\Software\Borland\BDS\3.0\Experts

 

For Delphi 2006, this registry key is used:

HKEY_CURRENT_USER\Software\Borland\BDS\4.0\Experts

 

For Delphi 2007, this registry key is used:

HKEY_CURRENT_USER\Software\Borland\BDS\5.0\Experts

 

If you install Delphi 7 after Pascal Analyzer, the registry settings have to be updated. In this case, enter the Options dialog, mark checkboxes and click the button Update registry. Furthermore, if you don’t want to use the wizard in one or all Delphi versions, you can use this functionality.

 

After clicking Update registry, the changes will take place the next time you start the Delphi IDE.

 

When updating the registry, the changes are immediately applied, regardless if you leave the Options dialog by pressing the OK or Cancel button.

 

 

Buffered viewer

Default = Yes

 

Select this checkbox to load source files in a more efficient manner. The drawback is that the source code file is locked by the viewer, so it cannot be edited by another application. For example, if the file is loaded in the viewer you cannot at the same time edit and save it in the Delphi IDE. If you want to be able to do so, you must deselect this option. This may give longer loading times especially for large source code files.

 

 

Show line numbers

Default = Yes

 

Select this checkbox if you want line numbers to appear in the left margin of the source viewer window.

 

Expand tab characters

Default = 8

 

Select the number of characters that a TAB character should be expanded to, when viewing source code.

 

 

See also:

 

Options menu

Preferences - General