After making the source code of dzDebugVisualizer available I got interested in Debug Visualizers in general and had a look at how they are supported in Delphi 11. I wrote a visualizer for TColor, based on an old EDN article (now only in the Internet Archive). And after that I simply added that functionality to dzDebugVisualizer. It supports both, the Watch window and Evaluate and Modify dialog. In the latter, there is now a new modifyer key ‘L’ for Co*l*or. The output shows three values:
- The color name, e.g. “clLime”
- The web color name, e.g. “clWebLime”
- The RGB value, e.g. “RGB(0, 255, 0)”
On top of that I moved the new menu items to a “Visualizers” submenu and added support to the “Local Variables” window as well.
These changes have already been committed to the svn repository on SourceForge.