×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    2

    CAknSelectionListDialog with custom ItemDrawer

    Hi All,

    I've subclassed CAknSelectionListDialog to do almost what I want, but I'd like to customize the ItemDrawer used by the list. To do this, it looks as if I need to create my own ListBox subclass.

    So I've got a resource file with a section like this:

    RESOURCE DIALOG r_listdlg_dialog
    {
    flags = EAknDialogSelectionList;
    buttons = R_AVKON_SOFTKEYS_DONE_CANCEL;
    items =
    {
    DLG_LINE
    {
    type = EAknCtSingleListBox ; // putting a custom type here causes trouble
    id = ESelectionListControl;
    control = LISTBOX
    {
    flags = EAknListBoxMultiselectionList;
    array_id = r_listdlg_list_array;
    };
    } ,
    DLG_LINE
    {
    itemflags = EEikDlgItemNonFocusing;
    id = EFindControl;
    type = EAknCtSelectionListFixedFind;
    }
    };
    }

    ...and until that point everything works fine. But I'd like to change the type in the first DLG_LINE section and create my own ListBox class using CreateCustomControlL. So far I haven't been able to get this to work -- it panics with AVKON 6 or AVKON 56.

    I understand that it might also be necessary to do something with ConvertCustomControlTypeToBaseControlType and IsAcceptableListBoxType, but I've had trouble finding good documentation on these.

    Has anyone had any luck with custom lists in a CAknSelectionListDialog? Or is there any way to replace the ItemDrawer without a custom list?

    Thanks!

  2. #2
    Regular Contributor
    Join Date
    Sep 2009
    Posts
    103

    Question Re: CAknSelectionListDialog with custom ItemDrawer

    I have encountered the same problem,who can help us?

  3. #3
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: CAknSelectionListDialog with custom ItemDrawer

    Regards,
    Shafali

Similar Threads

  1. How to insert CMyListbox in custom CMyDialog
    By studnokia in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-09-07, 14:43
  2. Can u subclass CAknGrid and set it's ItemDrawer
    By goready@163.com in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-04-11, 04:19
  3. Custom item not displayed correctly
    By kakoskin in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2004-10-11, 21:50
  4. Replies: 2
    Last Post: 2004-07-17, 10:11
  5. Synchronizing custom data
    By vtulai in forum OMA DM/DS/CP
    Replies: 1
    Last Post: 2004-06-04, 11:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×