Author Topic: Incremental Search  (Read 24033 times)

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: Incremental Search
« Reply #45 on: October 27, 2008, 02:18:48 pm »
I just wanted to say that replacing a wxTextCtrl by a wxComboBox is very easy.
I customised wxComboBox to my needs to make an history of the searched patterns for ThreadSearch plugin; I think the class name is something like HistoryComboBox or something like that.
It can be directly used in incremental search plugin without redeveloping the history behaviour
So I can reuse  some keyword by myself.
. That's all !

But ThreadSearch  is too professional
Just right click on a word and click on "Find occurrences"; not too complicated isn't it ?  :wink:

Dje

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: Incremental Search
« Reply #46 on: October 27, 2008, 05:20:45 pm »
I modify image
I will study HistoryComboBox  and try to modify Incremental Search(thx for dje ).

http://mmkider.googlepages.com/IncrementalSearch.zip


« Last Edit: October 27, 2008, 05:26:58 pm by mmkider »

Offline dje

  • Lives here!
  • ****
  • Posts: 683
Re: Incremental Search
« Reply #47 on: October 27, 2008, 08:38:33 pm »
In fact, I had to integrate this class in ThreadSearch but I didn't have time.

The files are joined in this post.
A very simple and useful class. It is derived from wxComboBox and stores all entered text in the combo history.
List is updated and sorted at each activation.
Event is skipped for other processing.

BR,

Dje

[attachment deleted by admin]

Offline mmkider

  • Almost regular
  • **
  • Posts: 150
Re: Incremental Search
« Reply #48 on: October 30, 2008, 01:58:54 pm »
 :D
I understand what is ThreadSearch(ThreadSearch is good for search  :D)
I think it's good for ThreadSearch  optional that default is " search in workspace file".

I am more familiar with the vs2005.
In recent days, I made a stupid thing to post codeblocks code to vs2005 prj.
last, I get a crash ,as follow:

wxASSERT_MSG( stringSrc.GetStringData()->IsValid(),
                  _T("did you forget to call UngetWriteBuf()?") );

because I use codeblocks ,I can't use dll call from codeblocks.exe.

Maybe,my methods are wrong.