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.

自定义CAknMarkableListDialog

From Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台: S60 3rd Edition

文章
关键词: CAknMarkableListDialog
huwell 在 11 Oct 2007 创建
最后由 hamishwillee 在 23 Nov 2011 编辑
  • 详细描述

CAknMarkableListDialog提供了可以通过Edit键+选择键来做标记的列表,下面是一些自定义属性的提示:

  1. 完成一个“选择和退出”功能,缺省情况下,要退出CAknMarkableListDialog只有通过按下Cancel按钮或者特定的菜单命令。如果需要的话,可在选择某项后生成对话框直接退出,通过如下代码实现:
    CEikDialog::TryExitL( TInt aButtonId )
    例如,在派生的对话框的ProcessCommandL方法:
    case EDlgCmdOKExit:
    {
    TryExitL( EDlgCmdOKExit );
    }
    这里EDlgCmdOKExit是一个按钮ID,可以用来退出对话框,就象OkToExitL()中定义一样。
  2. 使用选择菜单资源ID aOkMenuBarResourceId参数是在CAknMarkableListDialog构造函数中定义的,是一个MENU_BAR资源ID,当标记操作时按下OK键就会出现该菜单,可以定义为NULL,或者和aMenuBarResourceId的值一样。
This page was last modified on 23 November 2011, at 02:02.
50 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.

×