aboutsummaryrefslogtreecommitdiffstats
path: root/apps/windoze/CBuilder5/BibleCS/searchfrm.cpp
diff options
context:
space:
mode:
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;
}
//---------------------------------------------------------------------------