CurrAttr.indentleft

    • Offizieller Beitrag

    Hi,

    Locking of attributes is not possible. After selectAll + Delete the attributes are cleared, too. This is also what Word does and imo expected.

    You can use the event BeforeInitializePar to set basic and require attributes for each paragraph.

    You can also check if the editor is empty and make adjustments then:

    if (par.prev=nil) and (par.next=nil) and (par.CharCount=0) then
    begin
    par.ASet(WPAT_IndentLeft, 720);
    par.ADel(WPAT_IndentFirst);
    end;