diff options
author | danglassey <danglassey> | 2002-09-17 13:01:55 +0000 |
---|---|---|
committer | danglassey <danglassey> | 2002-09-17 13:01:55 +0000 |
commit | 77a7a5e60bd9e2f4efc30399b2975dbfd722e781 (patch) | |
tree | 9e67d61c031e568ce151d12f2ffce84069600419 /apps/windoze/swdisprtf.cpp | |
parent | d9323f589390dbce440f764989a482060634b67c (diff) | |
download | sword-sf-cvs-77a7a5e60bd9e2f4efc30399b2975dbfd722e781.tar.gz |
sync with crosswire 20020917-1300
Diffstat (limited to 'apps/windoze/swdisprtf.cpp')
-rw-r--r-- | apps/windoze/swdisprtf.cpp | 17 |
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); |