aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/swdisprtf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'apps/windoze/swdisprtf.cpp')
-rw-r--r--apps/windoze/swdisprtf.cpp17
1 files changed, 16 insertions, 1 deletions
diff --git a/apps/windoze/swdisprtf.cpp b/apps/windoze/swdisprtf.cpp
index f999301..64429f3 100644
--- a/apps/windoze/swdisprtf.cpp
+++ b/apps/windoze/swdisprtf.cpp
@@ -104,8 +104,23 @@ char SWDispRTF::Display(SWModule &Module) {
this->SelAttributes->Link = true;
}
//{ Position control text at current verse }
- this->SetFocus();
SelStart = 0;
+/*
+ if (Visible) {
+ TComponent *owner = this->Owner;
+ TForm *parentForm = dynamic_cast<TForm *>(owner);
+ TWinControl *focus = 0;
+
+ if (parentForm)
+ focus = parentForm->ActiveControl;
+ this->SetFocus();
+ SelStart = 0;
+ SelLength = 0;
+ SendMessage(Handle, EM_SCROLLCARET, 0, 0);
+ if (focus)
+ focus->SetFocus();
+ }
+*/
SelLength = 0;
SendMessage(Handle, EM_SCROLLCARET, 0, 0);