×
Namespaces

Variants
Actions

Archived:Input problems when using popup search field in a dialog (Known Issue)

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The TSearchFieldStyle::EPopup style does not work properly with the CAknDialog class when trying to enter text into the search field.

Article Metadata
Tested with
Devices(s): All S60 3rd Edition devices
CompatibilityArticle
Keywords: CAknSearchField, TSearchFieldStyle::EPopup
Created: User:Technical writer 1 (24 Apr 2009)
Last edited: hamishwillee (21 Jun 2012)

Description

CAknSearchField is used to create a search field in CAknDialog. The different types of TSearchFieldStyle include EPopup and ESearch. The ESearch style cannot be used with CAknDialog because it requires the search field to be a window-owning control, which is not the case with CAknDialog. EPopup style with CAknSearchField in a multipage dialog does not work properly. In some cases, when using EPopup there are problems when trying to enter (alphanumeric) text. Only numeric characters will be generated as input.

Solution

The problem with the EPopup style can be solved by manually setting the focus for the listbox.

// By setting focus text can be entered in EPopup style
iListbox->SetFocus(ETrue);

However, this workaround may cause additional problems in a multipage dialog and event filtering during page switching will need thorough handling.

This page was last modified on 21 June 2012, at 09:13.
58 page views in the last 30 days.
×