×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    18

    Angry does not show the listitem

    i am making the program in series60 3rd edition using .net editor the proram compile and no error also in debugging it not show any error but the member
    is not displayed in the list.

    _LIT(KListItemFormat,"%d\t%S\t%S\t");
    void CListBox1AppView::ConstructL( const TRect& aRect )
    {
    // Create a window for this application view
    CreateWindowL();

    //iListBox = new (ELeave) CAknSingleGraphicStyleListBox;
    iListBox= new(ELeave)CAknDoubleNumberStyleListBox;
    iListBox->SetMopParent(this);
    // Set the windows size
    SetRect(aRect);
    ConstructListL (aRect);
    iListBox->MakeVisible(ETrue);

    iListBox->ActivateL();
    iListBox->UpdateScrollBarsL();
    iListBox->DrawNow();
    // Activate the window, which makes it ready to be drawn
    ActivateL();


    }
    void CListBox1AppView ::ConstructListL (TRect aRect)
    {
    //ListBox instance
    //CAknSingleGraphicStyleListBox* iListBox;
    // iListBox=new(ELeave)CAknSingleGraphicStyleListBox;
    iListBox= new(ELeave)CAknDoubleNumberStyleListBox;

    iListBox->ConstructL(this,0);
    iListBox->SetRect(aRect);
    iListBox->SetContainerWindowL(*this);
    //Creating scroll bar
    iListBox->CreateScrollBarFrameL(ETrue);
    iListBox->CreateScrollBarFrameL()->SetScrollBarVisibilityL
    (CEikScrollBarFrame::EOn,CEikScrollBarFrame::EAuto);
    //Construct ListBox Array
    CDesCArray *itemList=new(ELeave)CDesCArrayFlat(18);
    TBuf<100>item;
    TInt idx(0);
    item.Zero();
    TPtrC itemString(item);

    item.Format(KListItemFormat,idx,&_L("First Item"),&_L("One"),idx);//appending item to the list box
    itemList->AppendL(item);
    iListBox->HandleItemAdditionL();
    iListBox->Model()->SetItemTextArray(itemList);
    iListBox->Model()->SetOwnershipType(ELbmOwnsItemArray);
    iListBox->MakeVisible(ETrue);
    iListBox->UpdateScrollBarsL();
    iListBox->SetFocus(ETrue);
    iListBox->DrawNow();
    iListBox->ActivateL();

    }

  2. #2
    Regular Contributor
    Join Date
    Apr 2006
    Location
    Mumbai. India.
    Posts
    204

    Re: does not show the listitem

    Hi,

    Have you checked your ListItemFormat.

    Please, check it again
    _LIT(KListItemFormat,"%d\t%S\t%S\t"); --> this could be wrong.

    Regards,
    Pankaj
    Mumbai.

  3. #3
    Super Contributor
    Join Date
    Jun 2004
    Location
    SymbianLand
    Posts
    763

    Re: does not show the listitem

    Have you implemented CountComponentControl and Componentcontrols for your view/container and returned the proper count of controls and their references?
    --Mayur.

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

    Re: does not show the listitem

    Hi,
    Mayur has a point there

    Check this ...it should help..atleast it helped me

    http://discussion.forum.nokia.com/fo...ad.php?t=95343

    good luck
    cheers
    Neil

Similar Threads

  1. How to show the calendar menu of a DateField?
    By Pepper_91 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 3
    Last Post: 2006-08-03, 19:04
  2. How to show Date and Auto Keylock on 6310i?
    By shan.m in forum General Development Questions
    Replies: 0
    Last Post: 2005-09-21, 12:29
  3. Replies: 1
    Last Post: 2004-02-20, 02:54
  4. Can EDWin show line breaks?
    By hanwang in forum Symbian User Interface
    Replies: 2
    Last Post: 2004-01-29, 07:28
  5. NMSS Emulator cannot show content?
    By DennisChen in forum General Messaging
    Replies: 2
    Last Post: 2003-08-07, 21:25

Posting Permissions

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