rounding errors in display routine?

    • Offizieller Beitrag

    Q: The display seems to be sub optimal on screen. What can I do?

    A: WPTools 5 was optimized to work with WYSIWYG. This means you always see the word wrap on screen which will be used at printtime, too. The problem you see is caused by the feature to format the text using the printer resolution. So on screen the display uses rounded values. (The screen uses 96 or 120 dpi and the printer usually 600)

    You can switch this feature off by setting
    (GlobalWPToolsCustomEnviroment as
    TWPToolsEnviroment).ScreenResolution := 0;
    If you are sure you want this. We recommend to leave it as it is.

    To disable the new formatting code for all WPTools projects deactivate {$DEFINE RM600} in unit WPCtrMemo.PAS.

    Please also see chapter WYSIWYG in the PDF manual.

    BTW.: In contrast to WPTools 4 and some competing products Version 5 will not change the word wrap when you switch printers! This is one of the many benefits of the new format code.