Skip to content

Commit aba31db

Browse files
committed
Searching in triggers/timers/aliases now includes the script function
1 parent 6875194 commit aba31db

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

dialogs/world_prefs/genpropertypage.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1310,6 +1310,7 @@ bool found;
13101310
return;
13111311

13121312
// select the new item
1313+
m_cTreeCtrl.SetFocus ();
13131314
m_cTreeCtrl.SelectItem (hItem);
13141315
m_cTreeCtrl.EnsureVisible (hItem);
13151316

@@ -1328,6 +1329,7 @@ bool found;
13281329

13291330
if (found)
13301331
{
1332+
m_ctlList->SetFocus ();
13311333
m_ctlList->SetItemState (m_pObjectFindInfo->m_nCurrentLine,
13321334
LVIS_FOCUSED | LVIS_SELECTED,
13331335
LVIS_FOCUSED | LVIS_SELECTED);

dialogs/world_prefs/prefspropertypages.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2790,7 +2790,10 @@ CString CPrefsP7::GetFindText (CObject * pItem) const
27902790

27912791
CString strResult = alias_item->name;
27922792

2793-
strResult += "\t" + alias_item->contents + "\t" + alias_item->strLabel + "\t" + alias_item->strGroup;
2793+
strResult += "\t" + alias_item->contents +
2794+
"\t" + alias_item->strLabel +
2795+
"\t" + alias_item->strGroup +
2796+
"\t" + alias_item->strProcedure;
27942797

27952798
return strResult;
27962799

@@ -3896,7 +3899,10 @@ CString CPrefsP8::GetFindText (CObject * pItem) const
38963899

38973900
CString strResult = trigger_item->trigger;
38983901

3899-
strResult += "\t" + trigger_item->contents + "\t" + trigger_item->strLabel + "\t" + trigger_item->strGroup;
3902+
strResult += "\t" + trigger_item->contents +
3903+
"\t" + trigger_item->strLabel +
3904+
"\t" + trigger_item->strGroup +
3905+
"\t" + trigger_item->strProcedure;
39003906

39013907
return strResult;
39023908

@@ -6447,7 +6453,9 @@ CString CPrefsP16::GetFindText (CObject * pItem) const
64476453

64486454
CString strResult = timer_item->strContents;
64496455

6450-
strResult += timer_item->strLabel + "\t" + timer_item->strGroup;
6456+
strResult += "\t" + timer_item->strLabel +
6457+
"\t" + timer_item->strGroup +
6458+
"\t" + timer_item->strProcedure;
64516459

64526460
return strResult;
64536461

0 commit comments

Comments
 (0)