×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Aug 2006
    Posts
    6

    Help:Text list box(CEikTextListBox) problem on Scroll Bar

    Hello,

    I wanna create a text list box on S60 3rd Edition device(E60). This is my
    codes to implement it:

    iTxLstBx = new(ELeave) CEikTextListBox;
    iTxLstBx->ConstructL(this,
    CEikListBox::ENoExtendedSelection|CEikListBox::EScrollBarSizeExcluded);
    iTxLstBx->CreateScrollBarFrameL(ETrue);
    iTxLstBx->ScrollBarFrame()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOn,
    CEikScrollBarFrame::EOn); //set scroll bar visibility.
    iTxLstBx->ScrollBarFrame()->DrawScrollBarsNow();
    iTxLstBx->SetBorder(TGulBorder::EDeepRaisedWithOutline);
    iTxLstBx->SetExtent(TPoint(10, 65), TSize(310,100));
    iTxLstBx->HandleItemAdditionL();
    TFontSpec spec(_L("Arial"), 5);
    spec.iFontStyle.SetStrokeWeight(EStrokeWeightBold);
    this->SetFontL(spec);
    iTxLstBx->ActivateL();
    iTxLstBx->DrawNow();

    The problem is that I can't see the horizontal scroll bar. Only can see the
    vertical scroll bar. So if there're many characters on one line, I only can
    see some of them.

    Can you help to see if I miss something on my codes? Thanks in advance!

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Bangalore,India
    Posts
    2,146

    Re: Help:Text list box(CEikTextListBox) problem on Scroll Bar

    The Style Guide at ->

    Developer Guides >> S60 UI Style Guide

    Mentions that

    ---------

    A grid should not be scrollable in both dimensions; it is acceptable only in cases where the grid has a natural geometry that cannot be changed. Calendar's Month view is an example of this kind of geometry (but even in that case it is better to fit the whole month on the screen rather than make it scrollable in both dimensions).

    ------------

    So you should take that into consideration as well..coz i would suggest that u should try and think of a way of not having 2 scroll bars on the same view..it is not a nice UI to look at.

    I know this is not the kind of answer u might be expecting but since i came across it thought..will mention it to you..

    Cheers

Similar Threads

  1. How to draw scroll bar with skin in 3rd edition
    By ppiggy in forum Symbian User Interface
    Replies: 7
    Last Post: 2007-11-07, 14:12
  2. Problem with displaing List on phone
    By developer-che in forum Mobile Java General
    Replies: 5
    Last Post: 2007-02-28, 10:07
  3. Faceing problem regarding list content
    By PankajNeve in forum Symbian
    Replies: 3
    Last Post: 2006-06-20, 12:55
  4. setting list problem
    By ddhungry in forum Symbian
    Replies: 0
    Last Post: 1970-01-01, 02:00
  5. setting list problem
    By ddhungry in forum Symbian User Interface
    Replies: 0
    Last Post: 1970-01-01, 02:00

Posting Permissions

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