my old way is not working in v5.
This is the code I've been using to do the hanging indent in 4.22
Code
//on create formWPRichText1.Memo.FVersion2CompMode:=[wp2NoAutoIndentTabs];//to set the indent spot WPRichText1.CurrAttr.IndentLeft := WPRichText1.GetXPositionTw; WPRichText1.CurrAttr.IndentFirst := - WPRichText1.CurrAttr.IndentLeft ;//to reset the indent to normalprocedure TMainform.WPRichText1KeyPress(Sender: TObject; var Key: Char);begin case Key of #13 : begin WPrichText1.InputString(#13); WPrichText1.CurrAttr.IndentLeft:=0; WPRichText1.CurrAttr.IndentFirst :=0; key:=#0; end; //end #13 end;end;
this generates an indent like this:
Code
normal text normal text normal text normal text normal text normal text normal text normal text normal text normal text normal text normal text normal text hanging indent hanging indent hanging indent hanging indent hanging indent hanging indent hanging indent hanging indent hanging indent hanging indent hanging indent hanging indent normal text normal text normal text normal text normal text normal text normal text normal text
but in v5 the global value wp2NoAutoIndentTabs doesn't work and I get this instead:
Code
normal text normal text normal text normal text normal text normal text normal text normal text normal text normal text normal text normal text normal text
hanging indent hanging indent hanging indent hanging indent
hanging indent hanging indent hanging indent hanging indent
hanging indent hanging indent hanging indent hanging indent
normal text normal text normal text normal text normal text normal text normal text normal text
how can I get the previous behavior in v5?