diff options
Diffstat (limited to 'apps/windoze/swdisprtf.cpp')
-rw-r--r-- | apps/windoze/swdisprtf.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/windoze/swdisprtf.cpp b/apps/windoze/swdisprtf.cpp index 3a725af..f999301 100644 --- a/apps/windoze/swdisprtf.cpp +++ b/apps/windoze/swdisprtf.cpp @@ -68,12 +68,12 @@ char SWDispRTF::Display(SWModule &Module) { if (!SWDYNAMIC_CAST(VerseKey, key)) filter.ProcessText(buf, 253, Module, &Module); - newtext = newtext + RTFHeadingPre + buf + RTFHeadingPost + ":\\par "; + newtext = newtext + RTFHeadingPre + buf + RTFHeadingPost + ":{\\par}"; tmptext = ""; tmptext = (const char *)Module; - newtext = newtext + RTFVersePre + " " + tmptext + RTFVersePost; + newtext = newtext + RTFVersePre + tmptext + RTFVersePost; newtext = newtext + RTFTrailer; RTFStream->Clear(); RTFStream->WriteBuffer(newtext.c_str(), newtext.Length()); @@ -103,7 +103,11 @@ char SWDispRTF::Display(SWModule &Module) { SelLength = endAt - foundAt; this->SelAttributes->Link = true; } + //{ Position control text at current verse } + this->SetFocus(); + SelStart = 0; SelLength = 0; + SendMessage(Handle, EM_SCROLLCARET, 0, 0); return 0; } |