User forums > Using Code::Blocks
Incremental Search
dje:
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
--- Quote from: mmkider on October 27, 2008, 01:35:01 pm ---So I can reuse some keyword by myself.
--- End quote ---
. That's all !
--- Quote from: mmkider on October 27, 2008, 01:35:01 pm ---But ThreadSearch is too professional
--- End quote ---
Just right click on a word and click on "Find occurrences"; not too complicated isn't it ? :wink:
Dje
mmkider:
I modify image
I will study HistoryComboBox and try to modify Incremental Search(thx for dje ).
http://mmkider.googlepages.com/IncrementalSearch.zip
dje:
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]
mmkider:
: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.
Navigation
[0] Message Index
[*] Previous page
Go to full version