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. Thanks for all your past and future contributions.

Archived:Customizing CAknMarkableListDialog

From 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}}.

Article Metadata
Platform(s): S60 3rd Edition
S60 3rd Edition (initial release)
Created: User:Technical writer 2 (25 Apr 2007)
Last edited: hamishwillee (14 Jun 2012)


Customizing CAknMarkableListDialog


CAknMarkableListDialog provides a list where items are markable with Edit  Shift) + selection key. Below are some tips for customizing its behaviour.
1) Implementing a 'select and exit' feature
By default, the only way to exit the CAknMarkableListDialog is to press the Cancel button or a dedicated menu command. If needed, the dialog can be made to exit immediately after selecting an item. This can be done with the CEikDialog::TryExitL( TInt aButtonId ) function.
For example, in a derived dialog's ProcessCommandL:
    case EDlgCmdOKExit:
        TryExitL( EDlgCmdOKExit );
where EDlgCmdOKExit is a button ID that can exit the dialog, as specified in OkToExitL().
2) Using selection menu resource ID
The aOkMenuBarResourceId parameter in CAknMarkableListDialog's constructor is the resource ID for a MENU_BAR. This menu is displayed when there are marked items in  the list and the user presses the selection (OK) key.  It can be NULL, or have the same value as aMenuBarResourceId.

This page was last modified on 14 June 2012, at 07:08.
32 page views in the last 30 days.