×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Rajkot
    Posts
    430

    CAknSingleGraphicStyleListBox's Error

    CreateWindowL();

    iListBox = new ( ELeave ) CAknSingleGraphicStyleListBox;
    TInt resourceId = R_AKNTALIST_ITEM_SINGLE1;
    iListBox->ConstructL(this);
    iListBox->SetContainerWindowL(*this);

    //Scrollbar.
    iListBox->CreateScrollBarFrameL(ETrue);
    iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(
    CEikScrollBarFrame::EOn, CEikScrollBarFrame::EAuto);

    CDesCArray *itemList = new ( ELeave ) CDesCArrayFlat(3);
    TBuf<32> item;
    TInt idx = 1;

    _LIT(KListItemFormat, "%d\t%S\t%S");

    item.Format(KListItemFormat, 0, _L("Head1"), _L("First Item"));
    itemList->AppendL(item);

    item.Format(KListItemFormat, 1, _L("Head2"), _L("Other Items"));
    itemList->AppendL(item);

    item.Format(KListItemFormat, 2, _L("Head3"), _L("Last Item"));
    itemList->AppendL(item);

    iListBox->Model()->SetItemTextArray(itemList);
    iListBox->Model()->SetOwnershipType(ELbmOwnsItemArray);

    // construct icon array with granularity 3
    CArrayPtr<CGulIcon>* iconList = new (ELeave) CAknIconArray(3);

    // push to stack
    CleanupStack::PushL(iconList);

    // Append graphic to icon list
    _LIT( KIconFile,"z\\system\\APPS\\SingleNumberStyleListBox\\SingleNumberStyleListBox.mbm");
    iconList->AppendL( iEikonEnv->CreateIconL( KIconFile, EMbmSinglenumberstylelistboxCheck,
    EMbmSinglenumberstylelistboxCheckm) );

    //// Append graphic to icon list
    iconList->AppendL( iEikonEnv->CreateIconL( KIconFile, EMbmSinglenumberstylelistboxLshellicon,
    EMbmSinglenumberstylelistboxLshelliconm) );

    //// Append graphic to icon list
    iconList->AppendL( iEikonEnv->CreateIconL( KIconFile, EMbmSinglenumberstylelistboxProp_group_small,
    EMbmSinglenumberstylelistboxProp_group_small_m) );
    //// set icons array to list
    iListBox->ItemDrawer()->ColumnData()->SetIconArray( iconList );
    CleanupStack::Pop(); // iconList

    // update listbox
    iListBox->HandleItemAdditionL();

    SetRect(aRect);
    ActivateL();

    i face Problrm at Build time that :
    79th Line is : iListBox->ItemDrawer()->ColumnData()->SetIconArray( iconList );


    .cpp(79) error C2027: use of undefined type 'CColumnListBoxData'

    .cpp(79): error C2227: left of '->SetIconArray' must point to class/struct/union

    please give me solution of this problem.

    Tanya.

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Smile Re: CAknSingleGraphicStyleListBox's Error

    Hi,

    WelCome!!! :)

    Refer to the following link:
    http://discussion.forum.nokia.com/fo...ad.php?t=37577

    I hope it will help you at some extent.

    Regards.
    Kiran.

  3. #3
    Super Contributor
    Join Date
    May 2005
    Location
    Hyderabad,India
    Posts
    704

    Re: CAknSingleGraphicStyleListBox's Error

    Hi,

    Include the header files,

    eikclbd.h and akniconarray.h

    regards,
    eswar

  4. #4
    Nokia Developer Moderator
    Join Date
    Oct 2006
    Location
    Finland
    Posts
    4,533

    Re: CAknSingleGraphicStyleListBox's Error

    Welcome to forum,

    check includes..i believe there is the problem

    Good luck and cheers
    Neil

  5. #5
    Regular Contributor
    Join Date
    Nov 2006
    Location
    Rajkot
    Posts
    430

    Re: CAknSingleGraphicStyleListBox's Error

    Thank you,

    ya it's true i forgot #include <eikclbd.h> this header file.

    Tanya

Similar Threads

  1. XMl Parser Implementation for Symbian
    By ittiam in forum Symbian
    Replies: 26
    Last Post: 2009-09-16, 05:26
  2. stupid error!
    By bojkar in forum Symbian
    Replies: 1
    Last Post: 2006-12-14, 05:47
  3. Replies: 1
    Last Post: 2006-09-08, 07:05
  4. My BuilderX (with S60 SDK 2.1.NET MS version) cannot build ARMI UREL
    By danielvidonyi@hotmail.com in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2006-05-04, 21:30
  5. User break point error in Grid
    By ag24master in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-08-07, 08:20

Posting Permissions

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