×

Discussion Board

Results 1 to 2 of 2

Thread: list box

  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    20

    list box

    void CWSDownloadDirListingContainer :: CreateListBoxL(void)
    {
    //create list box
    iList = new (ELeave) CAknSingleGraphicStyleListBox;//CAknDoubleLargeStyleListBox;

    iList->SetContainerWindowL(*this);
    iList->ConstructL(this,EAknListBoxMultiselectionList);
    iList->CreateScrollBarFrameL(ETrue);
    iList->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOn, CEikScrollBarFrame::EAuto);
    iListItems=static_cast<CDesC16Array*>(iList->Model()->ItemTextArray());


    CArrayPtr<CGulIcon>* iMainScreenIconList = new (ELeave) CAknIconArray(3);
    CleanupStack::PushL(iMainScreenIconList);
    iMainScreenIconList->AppendL(iEikonEnv->CreateIconL(KIconFileName,EMbmWebspaceDir,EMbmWebspaceDir_mask));
    iMainScreenIconList->AppendL(iEikonEnv->CreateIconL(KIconFileName,EMbmWebspaceFile,EMbmWebspaceFile_mask));
    iMainScreenIconList->AppendL(iEikonEnv->CreateIconL(KIconFileName,EMbmWebspaceCheck,EMbmWebspaceCheck_mask));


    CleanupStack::Pop();
    iList->ItemDrawer()->ColumnData()->SetIconArray(iMainScreenIconList);
    //iMainScreenListBox1->ItemDrawer()->ColumnData()->SetIconArray(iMainScreenIconList);


    }




    /////////////// for getting selected icons number
    TBuf<100> bufferName;
    TBuf<2> iconNumber;
    TInt selectedIndex = iList->CurrentItemIndex(); bufferName.Copy((*iListItems)[selectedIndex]);
    iconNumber = bufferName.Left(1);
    //////////////////////////////

    if(iconNumber == _L("1")) // index 1 for checked icon
    {

    ///////// perform operation for checked

    }
    if(iconNumber == _L("0")) // index 1 for checked icon
    {

    ///////// list item is not checked

    }

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

    Re: list box

    you can download the example from emmc website. what the defination you have given in .rss file can you explain little bit more what the error comes when checked.


    hope that example will help 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]

Similar Threads

  1. 6680 and bluetooth service profiles
    By ceruault in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-08, 22:24
  2. Partial-screen list box?
    By keisala in forum Symbian User Interface
    Replies: 2
    Last Post: 2004-09-20, 17:40
  3. list box with find box - Series 60
    By white_dragon in forum Symbian
    Replies: 3
    Last Post: 2004-08-16, 09:52
  4. Replies: 1
    Last Post: 2004-03-01, 08:37
  5. List Box control on series -60
    By Nokia_Archive in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2002-05-30, 21:03

Posting Permissions

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