×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    May 2012
    Posts
    18

    list box shifted from bottom

    Hello All
    I am disable status pane as project requirement.
    and created list box.
    but list box is not looking good as it is shifted from bottom.
    how can I make it till bottom?
    I am doing as follows:
    In ConstructL()
    iItemList = new (ELeave) CAknDoubleGraphicStyleListBox();
    iItemList->SetContainerWindowL(*this);
    iItemList->SetMopParent(this);
    iItemList->ConstructL(this,EAknListBoxSelectionList | EAknListBoxLoopScrolling);//,EAknListBoxSelectionList);
    iItemList->CreateScrollBarFrameL(ETrue);
    iItemList->SetListBoxObserver(this);
    iItemList->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);
    //Force any scroll bars and the corner window if it is visible to be redrawn
    iItemList->ScrollBarFrame()->DrawScrollBarsNow();
    iItemList->UpdateScrollBarsL();
    iItemList->Model()->SetItemTextArray(titlearray);
    iItemList->Model()->SetOwnershipType(ELbmOwnsItemArray);
    iItemList->SetCurrentItemIndex(0);
    iItemList->SetFocus(ETrue);
    iItemList->HandleItemAdditionL();

    in sizechange()
    TInt x=0;
    TRect rect;
    TInt height_lab = label->SizeInPixels().iHeight;
    s.iHeight = (Rect().Size().iHeight)-(height_lab);
    s.iWidth = Rect().Size().iWidth;
    iItemList->SetExtent(TPoint(x,height_lab),s);

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: list box shifted from bottom

    Unfortunately listboxes are basically designed to be used with the status panel. So it will not necessarily fit nicely when there is no status panel. also note that different devices/platform versions might have different look & feel. So I would suggest you to leave the status panel there

  3. #3
    Registered User
    Join Date
    May 2012
    Posts
    18

    Re: list box shifted from bottom

    But Cant I make some kind of custom list box which works accordingly..

  4. #4
    Registered User
    Join Date
    May 2012
    Posts
    18

    Re: list box shifted from bottom

    and how can I display image in control pane at Option and Exit (LSK and RSK).
    i dont want to use skin its changes my device's skin.

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,698

    Re: list box shifted from bottom

    You can find articles about customizing lists in the Wiki, like http://www.developer.nokia.com/Commu..._a_list_box%3F, perhaps http://www.developer.nokia.com/Commu...ki/Custom_list (I have not checked what it contains)
    You can experiment with the search box in the top-right corner, or use Google - for finding these two I searched for custom list wiki site:nokia.com

  6. #6
    Registered User
    Join Date
    May 2012
    Posts
    18

    Re: list box shifted from bottom

    and how can i change background colour of control pane??????
    without using skin..

  7. #7
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,698

    Re: list box shifted from bottom

    I do not know, but it may be more efficient to start a new thread with this question. People who may have ideas for that, will not necessarily open a question with title "list box shifted from bottom".

    EDIT: http://www.developer.nokia.com/Commu...ne-and-listbox
    Last edited by wizard_hu_; 2012-05-17 at 15:57.

Similar Threads

  1. Softmenu alway at the bottom
    By lorion84 in forum Symbian
    Replies: 1
    Last Post: 2010-08-17, 10:39
  2. ListBox skin shifted
    By Lichtens in forum Symbian User Interface
    Replies: 14
    Last Post: 2009-02-24, 23:01
  3. findbox outside of screen bottom.
    By somowo in forum Symbian
    Replies: 4
    Last Post: 2008-07-23, 09:21

Posting Permissions

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