×

Discussion Board

Results 1 to 3 of 3

Thread: Listbox problem

  1. #1
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,073

    Listbox problem

    hi im creating a singlegraphicstyle list box but problem is that its not getting drawn properly, a blank space is left at the bottom of the list and the bottom part of the scroll bar is also getting hidden . i have written the following code to draw the list.

    iListBox = new (ELeave) CAknSingleGraphicStyleListBox();//CEikColumnListBox();
    iListBox->SetContainerWindowL(*this);

    //iListBox->ScrollBarFrame()->SetScrollBarVisibilityL( CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);
    TResourceReader reader;
    CEikonEnv::Static()->CreateResourceReaderLC(reader,R_MARKABLELIST_LISTBOX);
    iListBox->ConstructFromResourceL(reader);
    // iListBox->ConstructL(this, EAknListBoxSelectionList | EAknListBoxLoopScrolling);
    iListBox->CreateScrollBarFrameL(ETrue);
    iListBox->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOn, CEikScrollBarFrame::EAuto);
    //iListBox->SetListBoxObserver(this);
    iListBox->UpdateScrollBarsL();
    iListBox->SetFocus(ETrue);
    CleanupStack::PopAndDestroy();

    iListBox->SetRect(rect);
    listBoxItems=static_cast<CDesC16Array*>(iListBox->Model()->ItemTextArray());
    iListBox->ActivateL();

    ///////////////Resource////////////////

    R_MARKABLELIST_LISTBOX:

    RESOURCE LISTBOX r_markablelist_listbox
    {
    flags = EAknListBoxSelectionList;
    }

  2. #2
    Regular Contributor
    Join Date
    Oct 2008
    Posts
    95

    Re: Listbox problem


  3. #3
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    4,073

    Re: Listbox problem

    i have drawn a singlegraphic style list box and extended it to full screen , upto its status pane.
    i am facing a strange problem that that a space is created at the bottom of the list box if i extent the list box to full screen.
    Also if i go to some other container and then switch back to list box view then in that spcae at the bottom, the contents of the previous container gets drawn.
    So plz do give idea as how to remove or fill up that empty space at the bottom of the list box.

    The code i used to draw the list box is shown on my earlier post in this thread only.

Similar Threads

  1. Problem in listbox in Dialog..plz help
    By SymbianLover2007 in forum Symbian
    Replies: 10
    Last Post: 2008-09-19, 10:50
  2. Problem in ListBox...pls help me
    By sumanbangladesh in forum Symbian
    Replies: 7
    Last Post: 2007-08-17, 14:46
  3. problem CAknQueryDialog ListBox
    By muntain in forum Symbian
    Replies: 16
    Last Post: 2007-08-06, 16:10
  4. Replies: 2
    Last Post: 2007-04-05, 06:22
  5. Problem with Multiselection Listbox in DIALOG ( checkbox )
    By vemulakiran in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-01-12, 12:59

Posting Permissions

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