Hi, I need to create a find box in series 80. I checked the look up example in series 60, which contains a find box. My problem is that they use "CAknFilteredTextListBoxModel" class in series 60, and there isn't an equivalent CCknFilteredTextListBoxModel in series 80. Does anybody know any alternative of this class in series 80?
Thanks in advance.
in the series 60 lookup application, they've used:
AknFind class in the SizeChanged method;
CAknFilteredTextListBoxModel class,
and CAknSerachField;
In series 80, i just found the CCknSearch field, and created and instance; but it didn't appear on the screen. I guess i need the alternatives of AknFind and CAknFilteredTextListBoxModel to make it happen.
Any further help or maybe code snippet is appreciated,
Regards.
Re: Alternative of CAknFilteredTextListBoxModel in series 80
2005-09-15, 13:17#4
You can use the following code snippet to get the original unfiltered index from a list in series 80
TInt index = iList->CurrentItemIndex();
// this gives the index of the filtered list
CTextListBoxModel *model = iList->Model();
TPtrC displayedData = model->ItemText(index);
//to get the original index
MDesCArray *elements = model->ItemTextArray();
CDesCArray *itemArray = STATIC_CAST( CDesCArray*, elements );
TInt originalIndex;