A lot of the highlighting and code enhancing that CodeRush does is done by overwriting Delphi's native display. This obviously only works (looks right) if they are both displaying in the same place. Sometimes, CodeRush can't figure out what font you are using, or it gets incorrect font data from Delphi. Other times, the font height is simply miscalculated. There are workarounds in Delphi to give CodeRush the correct font info but in some cases even this doesn't work.
This plug-in handles the above situations by forcing the font height that CodeRush uses.
Registers a new command, AdjustEditorDimensions, that writes the current font information to the Registry so CodeRush can properly interpret the editor's font settings.
FONT DISPLAY RELATED ISSUES
If a Delphi install has never had the font, font size, or font color settings changed, it leaves an empty setting in the Registry. Before relying on this plug-in, you may wish to simply make a temporary change, as follows: Change your font settings (e.g. toggle Comments to bold, click OK, then toggle them back and click OK again in Delphi's Display Settings dialog). This will get some values out to the Registry to help CodeRush accurately calculate line height.
In the event that fails, there may be something about your editor font that causes CodeRush to calculate the line height in a manner different from the way Delphi does. One work-around is to hard-code the line height for CodeRush in the Registry. This plug-in may help.
And if that fails, it may be an initialization order issue. IOW, you may have the Declaration View starting up before Delphi displays an edit window. CodeRush takes advantage of that first appearance of an edit window to gather information used to accurately calculate line height and other information. So, if you have the DecView inside a desktop that always loads before a file (or if you start Delphi by double-clicking a file or project on disk), you might want to undock the DecView or remove it from that desktop, or change the way you start Delphi.
Copyright 2004 Ackerson Software, All Rights Reserved.
Character Dimensions Adjust
Author: Mark Miller
Created: September 5, 2002
Plug-In Type: Standard
Options Page: No
This plug-in is NOT currently supported.
This plug-in is not the property of Developer Express; it is the sole property of its author. As such, Developer Express cannot be held liable for any incidental damages that may be related to the usage of this plug-in.