×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    8

    Question How to add icons to CAknSettingItemList items and the options of popuplist

    I write a new class to inherit "CAknSettingItemList", and rewrite "CreateSettingItemL()"method to create listbox items from resource file. the code as follows:
    CAknSettingItem* CpepContPresence::CreateSettingItemL( TInt aId )
    {

    TPsCapability capability;
    if ( 0 == iRapidMode )
    {
    (((CpepAppUi*)iCoeEnv->AppUi()))->GetCapability(capability);
    }
    //only the raodi mode use the flag
    else if ( 0 == iFlagCapacity )
    {
    (((CpepAppUi*)iCoeEnv->AppUi()))->GetCapability( iCapability );
    iFlagCapacity = 1;
    }
    // TBool isNumberedStyle = iSettingItemList->GetNumberedStyle();
    switch ( aId )
    {
    // [[[ begin generated region: do not modify [Initializers]
    case ESettingItemList_Avail:
    {
    CAknEnumeratedTextPopupSettingItem* item = new (ELeave)
    CAknEnumeratedTextPopupSettingItem( aId, iSettings.EnumeratedTextPopupAvail() );

    return item;

    }
    case ESettingItemList_Mood:
    {
    CAknEnumeratedTextPopupSettingItem* item = new (ELeave)
    CAknEnumeratedTextPopupSettingItem( aId, iSettings.EnumeratedTextPopup1() );
    ........
    now, I have two questions:
    first : how to add an icon to every item ,before or after the title text?
    second: how to add icons to all the options on the popuplist page when you select one items,and click into?

  2. #2
    Super Contributor
    Join Date
    Jun 2006
    Location
    India
    Posts
    3,037

    Re: How to add icons to CAknSettingItemList items and the options of popuplist

    Hi,

    See dynamic setting link example might be helpful to you.
    Use [URL="http://qt.nokia.com/products/qt-quick/"]Qt-Quick[/URL] to make your application UI more attractive.

    [URL="http://store.ovi.com/content/271896"]http://store.ovi.com/content/271896[/URL] | [URL="http://store.ovi.com/content/276199"]http://store.ovi.com/content/276199[/URL] |[URL="http://store.ovi.com/content/276202"] http://store.ovi.com/content/276202[/URL] | [URL="http://store.ovi.com/content/280827"]http://store.ovi.com/content/280827[/URL]

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    8

    Re: How to add icons to CAknSettingItemList items and the options of popuplist

    thanks for your suggestion, I had seen that passage, but I want to add icons before Enumerated text and the options of enumerated list, So how can I do?

Posting Permissions

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