Hello,
Is any way to Lock CurrAttr.indentleft ?
The problem is that when the user select all text
and then clears it, the CurrAttr.indentleft reset to default.
Thanks....
Hello,
Is any way to Lock CurrAttr.indentleft ?
The problem is that when the user select all text
and then clears it, the CurrAttr.indentleft reset to default.
Thanks....
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;
Thanks for your replay...