aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/CBuilder5/BibleCS/searchfrm.cpp
diff options
context:
space:
mode:
authordanglassey <danglassey>2002-09-04 13:01:46 +0000
committerdanglassey <danglassey>2002-09-04 13:01:46 +0000
commitd18b997ae96079d784f304dd08dac70ee6bf0e7d (patch)
treeb1d9410e9685f967709b9e52f4e63a9a895ed798 /apps/windoze/CBuilder5/BibleCS/searchfrm.cpp
parentdcf385382e6112b945452da8ef7fedd63f9624b3 (diff)
downloadsword-sf-cvs-d18b997ae96079d784f304dd08dac70ee6bf0e7d.tar.gz
sync with crosswire 20020904-1300
Diffstat (limited to 'apps/windoze/CBuilder5/BibleCS/searchfrm.cpp')
-rw-r--r--apps/windoze/CBuilder5/BibleCS/searchfrm.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/apps/windoze/CBuilder5/BibleCS/searchfrm.cpp b/apps/windoze/CBuilder5/BibleCS/searchfrm.cpp
index 7082ed7..4d98ade 100644
--- a/apps/windoze/CBuilder5/BibleCS/searchfrm.cpp
+++ b/apps/windoze/CBuilder5/BibleCS/searchfrm.cpp
@@ -133,7 +133,10 @@ void __fastcall TsearchForm::ListBox1Click(TObject *Sender)
if (focused) {
int row = focused->Index;
ListKey verse;
- verse << resultsLV->Items->Item[row]->Caption.c_str();
+ SWKey *key = target->CreateKey();
+ *key = resultsLV->Items->Item[row]->Caption.c_str();
+ verse << *key;
+ delete key;
pvrtf->fillWithVerses(target, &verse, true, false, "Search");
}
}
@@ -236,6 +239,8 @@ void __fastcall TsearchForm::FormShow(TObject *Sender)
{
populateRanges();
fillList();
+ Button1Click(0);
+ Button1Click(0);
}
//---------------------------------------------------------------------------
@@ -279,7 +284,7 @@ void __fastcall TsearchForm::resultsLVCustomDrawItem(TCustomListView *Sender, TL
double multiplier = 1.2;
textHeight *= multiplier;
int textWithMargin = 3 + textHeight;
- if (resultsLV->StateImages->Height != textWithMargin) {
+ if (resultsLV->StateImages->Height < textWithMargin) {
resultsLV->StateImages->Height = textWithMargin;
DefaultDraw = false;
return;
@@ -337,6 +342,7 @@ void TsearchForm::setTarget(SWModule *itarget) {
RTFHintForm->searchListDrawer->fillWithRTFString(target, "yoyo");
SearchText->Font->Name = RTFHintForm->searchListDrawer->dispAttribs.fontName;
// SearchText->Font->Size = RTFHintForm->searchListDrawer->dispAttribs.fontSize;
+ resultsLV->StateImages->Height = 1;
}
//---------------------------------------------------------------------------