Question about StyleTemplates / implement Word like handling
Posted: Fri Oct 07, 2022 8:38 am
Hello,
I'am trying to use StyleTemplate to get a word like editor. For learning I use the sample from "DelphiUnicode\Editors\StyleTemplates". I thought if I apply the "Standard" (translated to german) or so called "Normal" template to the selected text it resets everything to this defaults - font/color/size, paragraph properties and so on like word does it.
But currently it resets only the paragraph properties - because the "Normal" ST has Kind=rvstkPara, which couldn't ne changed -> because of the Name. Can you explain me why?
Why can't be the ST "Normal" not also an Kind=rvstkParaText?
thanks in advance
André
I'am trying to use StyleTemplate to get a word like editor. For learning I use the sample from "DelphiUnicode\Editors\StyleTemplates". I thought if I apply the "Standard" (translated to german) or so called "Normal" template to the selected text it resets everything to this defaults - font/color/size, paragraph properties and so on like word does it.
But currently it resets only the paragraph properties - because the "Normal" ST has Kind=rvstkPara, which couldn't ne changed -> because of the Name. Can you explain me why?
Why can't be the ST "Normal" not also an Kind=rvstkParaText?
thanks in advance
André