aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/CBuilder5/BibleCS/RxRichEditX.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/CBuilder5/BibleCS/RxRichEditX.cpp
parentd9323f589390dbce440f764989a482060634b67c (diff)
downloadsword-sf-cvs-77a7a5e60bd9e2f4efc30399b2975dbfd722e781.tar.gz
sync with crosswire 20020917-1300
Diffstat (limited to 'apps/windoze/CBuilder5/BibleCS/RxRichEditX.cpp')
-rw-r--r--apps/windoze/CBuilder5/BibleCS/RxRichEditX.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/windoze/CBuilder5/BibleCS/RxRichEditX.cpp b/apps/windoze/CBuilder5/BibleCS/RxRichEditX.cpp
index f42ffb1..a304b10 100644
--- a/apps/windoze/CBuilder5/BibleCS/RxRichEditX.cpp
+++ b/apps/windoze/CBuilder5/BibleCS/RxRichEditX.cpp
@@ -591,10 +591,18 @@ void TRxRichEditX::fillWithVerses(SWModule *module, ListKey *verses, bool headin
this->SelAttributes->Link = true;
}
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();
}
Repaint();