×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore
    Posts
    285

    Scrollbar not visible on 2nd Edition Devices

    Hi All,
    my Application(3rd Edition) uses Scroll bars extensively along with custom containers. I have ported the same to 2nd Edition Devices But the thing is that the scroll bars are not visibe. I tinkered with the code but to no avail.

    Here is the scroll bar code :
    if(iScrollBarFrame == NULL)
    {
    iScrollBarFrame = new(ELeave) CEikScrollBarFrame(this, this, ETrue);
    #ifdef EKA2
    #ifndef UIQ3
    iScrollBarFrame->SetScrollBarFrameFlags(CEikScrollBar::EEikScrollBarShaftButNoThumb);
    iScrollBarFrame->CreateDoubleSpanScrollBarsL(ETrue, EFalse);
    iScrollBarFrame->SetTypeOfVScrollBar( CEikScrollBarFrame::EDoubleSpan);
    #endif
    iScrollBarFrame->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);
    #else
    iScrollBarFrame->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EAuto);
    iScrollBarFrame->SetTypeOfVScrollBar(CEikScrollBarFrame::ENormalScrollBar);
    #endif
    }

    Heres the code for scrolling
    if(!iScrollBarFrame) return;
    #ifndef UIQ3
    #ifdef EKA2
    TRect rect = Rect();
    TAknDoubleSpanScrollBarModel vModel;
    TRect iVRect(TPoint(rect.iBr.iX - iScrollBarWidth, 0), TSize(iScrollBarWidth, rect.Size().iHeight));

    vModel.iScrollSpan = iItemList.Count();
    vModel.iThumbPosition = iActiveComponentIndex+iVisibleWindowIndex;
    vModel.iThumbSpan = 1;
    iScrollBarFrame->Tile(&vModel, iVRect);
    #else // EKA2
    TEikScrollBarModel vModel(iItemList.Count(), 1, iActiveComponentIndex+iVisibleWindowIndex);
    iScrollBarFrame->Tile(&vModel);
    #endif // EKA2
    #else // UIQ3
    TEikScrollBarModel hModel;
    TEikScrollBarModel vModel(iItemList.Count(), 1, iActiveComponentIndex+iVisibleWindowIndex);
    TEikScrollBarFrameLayout scrollLayout;
    scrollLayout.iTilingMode = TEikScrollBarFrameLayout::EInclusiveRectConstant;
    TRect client;
    TRect inclusiveRect = Rect();
    iScrollBarFrame->TileL(&hModel, &vModel, client, inclusiveRect, scrollLayout);
    #endif // UIQ3
    iScrollBarFrame->MoveVertThumbTo(iActiveComponentIndex+iVisibleWindowIndex);
    iScrollBarFrame->DrawScrollBarsNow();

    anybody worked on scrollbars before????


    Thanks in Advance

    Regards
    Shashi Kiran G M

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Scrollbar not visible on 2nd Edition Devices

    Hi,

    i think 2nd Edition SDK support scroll arrow at CBA, not vertical scrollbar as supported in 3rd edition.

    savaj...

  3. #3
    Regular Contributor
    Join Date
    Jan 2007
    Location
    Bangalore
    Posts
    285

    Re: Scrollbar not visible on 2nd Edition Devices

    hmm.. i had read a similar post before posting.. i needed a vertical scroll bar. perhaps a far cry!!! Thanks for the prompt reply.

    Regards
    Shashi Kiran G M

Similar Threads

  1. Background SMS Send s60 2nd Edition
    By symbee in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2008-09-12, 15:33
  2. Replies: 1
    Last Post: 2007-09-21, 07:58
  3. Internet Sockets not working in 2nd edition FP2
    By niranjancsc in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2007-03-26, 15:18
  4. IMEI for Series40 2nd edition
    By gpalvia in forum Mobile Java General
    Replies: 1
    Last Post: 2006-09-05, 13:06

Posting Permissions

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