Namespaces

Variants
Actions

Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries over the next few weeks. Thanks for all your past and future contributions.

Revision as of 06:18, 6 August 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

当使用弹出对话框的搜索栏时发生的输入问题

From Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台: S60 3rd Edition, S60 5th Edition
S60 3rd Edition FP1

文章
翻译:
huwell
最后由 hamishwillee 在 06 Aug 2012 编辑
  • 详细描述

当使用CAknDialog类的TSearchFieldStyle::EPopup生成对话框后,如果要向搜索栏中输入文本时会发生问题。

CAknSearchField可以用来在CAknDialog中生成搜索框。TSearchFieldStyle包括EPopup和ESearch两种类型。ESearch无法用在CAknDialog中,因为它需要搜索框为拥有控制权的窗口。有时,当我们使用EPopup时发现输入框只能输入数字而不能输入字母。

  • 解决方案

我们可以通过手机设置listbox获取焦点而解决这个问题:

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

但是,这个解决方案在多页对话框中将会引发新的问题。这时页面切换时需要我们处理好事件过滤。

This page was last modified on 6 August 2012, at 06:18.
51 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×