Footer Shading - Unable to UNDO shading back to PaperColor

  • WP Tools v 5.48.5, Delphi 5, Windows XP

    In a test project, using a Checkbox, I can set the Footer Shading (BG Color) as expected. However, when I want to UN-DO the shading, I "should" be able to set the footer shading color to Editor.PaperColor so that shading will not be visible. However this part does not work.

    So, if Editor.PaperColor is set to clInfoBK, footer shading remains gray. This works fine if I keep PaperColor to clWindow and call "WPT_Set_Footer_Shading()" below.


    In essense, Footer Shading "UNDO" works ONLY IF Editor.PaperColor = clWindow but NOT if PaperColor is anything else.

    Am I missing something here? Is there a better way to approach this?

    Thanks

    JayM

    • Offizieller Beitrag

    Hi,

    the assumption is wrong, that this would clear the shading:
    WPT_Set_Footer_Shading(TheEditor, TheEditor.PaperColor, 100) ;

    In fact, WPTools 5 (and 6) supports the complete deletion of a property which makes this property undefined.

    In this case use

    Par.ADel(WPAT_BGColor);
    Par.ADel(WPAT_ShadingValue);

    to delete the attributes.

    Regards,
    Julian