Hiding and showing CAknSearchField

Login to reply to this topic.
Sat, 2007-03-03 21:01
Joined: 2006-08-25
Forum posts: 3
Hi.

I have a CAknSearchField added to a listview. It has a style EPopup, and is visible at start.

How i can hide and show the search field? If I use MakeVisible method, the field is hidden, but it's area is not redrawn correclty.

But when I show the field again with MakeVisible(ETrue), a Cancel menu is automatically added (not originally visible). So, i must press cancel if i wish to hide that again, or the Cancel option is not removed. When the field is reshown, program always crashes with Kern-exec 3 when exiting.

How can MakeVisible cause the program to crash? That really makes no sense at all to me... What is the right way to show and hide the EAknSearchField?
  • Login to reply to this topic.