aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/swdisprtf.cpp
diff options
context:
space:
mode:
authordanglassey <danglassey>2002-09-17 13:01:55 +0000
committerdanglassey <danglassey>2002-09-17 13:01:55 +0000
commit77a7a5e60bd9e2f4efc30399b2975dbfd722e781 (patch)
tree9e67d61c031e568ce151d12f2ffce84069600419 /apps/windoze/swdisprtf.cpp
parentd9323f589390dbce440f764989a482060634b67c (diff)
downloadsword-sf-cvs-77a7a5e60bd9e2f4efc30399b2975dbfd722e781.tar.gz
sync with crosswire 20020917-1300
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);