I am writing a project with Carbide 1.3 and Symbian series 60 3rd edition. I am using the carbide's ui designer.
I have several problems with a view in which i have a listbox (CAknDoubleStyleListBox) with a search field (CAknSearchField).
First problem is that Carbide create the search field in that way
CAknSearchField* searchField =
CAknSearchField::NewL( *this, CAknSearchField::EPopup, 0, 40 );
and i only can write numbers in the search field (i need write characters)
I have read in some lists that the problem is the "EPopup", and it looks like true, because if i declared it like "ESearch" i can write characters, but now the search field doesn't
appear in the view (i can make searchs, but i cannot see the characters that i am writing)
I don't like that i cannot (or i don't know how to) change this property from ui designer
Also i had to change the SizeChanged method because i cannot use the function
AknFind::HandlePopupFindSizeChanged( this, iListBox, iListBoxSearchField );
i must to use
AknFind::HandleFixedFindSizeChanged( this, (CAknColumnListBox*)iListBox, iListBoxSearchField );
but this neither solve my problem.
I have also see that the problem could be in the InitializeControls when carbide writes me
iListBox->SetFocus( ETrue );
iFocusControl = iListBox;
Somebody says that they solved the problem writing those lines
iListBoxSearchField->SetFocus(ETrue, EDrawNow) ;
iFocusControl = iListBoxSearchField;
so, giving the focus to the search field. This solution also looks like the good one, but it gives me panics when i go for the second time to a view with the listbox and the search field. The aplication hangs up and exit, but no message is generated.
The really problem is that everything works fine if i use a single listbox, but i must use a listbox with two lines of text. So, i really don't know how to solved this problem in the better way (without modifiyng code that carbide writes between:
// [[[ begin generated function: do not modify and // ]]] end generated function
Is possible solved this from the ui designer?
How can i solved it?
Thank you in advance