×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Feb 2005
    Posts
    40

    Implementing Vertical ScrollBar for the Custom Control

    Hi
    Can anyone help me while putting down Vertical Scroll Bar for a Custom Control which is derived from the CCoeControl Class.

    I do have implemented the code for the Scroll Bar but then too its not showing up

    Implementation i have done for the ScrollBar

    void
    CIconList::ConstructL(const TRect& aRect, const CCoeControl* aParent)
    {

    // ScrollBar Implementation
    MEikScrollBarObserver* aScrollBarObserver;
    iSbFrame = new (ELeave) CEikScrollBarFrame(this, aScrollBarObserver, ETrue); //CEikScrollBarFrame();
    iSbFrame->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff, CEikScrollBarFrame::EOn);
    iSbFrame->SetTypeOfVScrollBar(CEikScrollBarFrame::EArrowHead);

    iVModel.iScrollSpan = 10;
    iVModel.iThumbSpan = 1;
    iVModel.iThumbPosition = 3;

    TEikScrollBarFrameLayout layout;

    TRect rect = aRect;
    iSbFrame->TileL(&iHModel, &iVModel, rect, rect, layout);

    iSbFrame->SetVFocusPosToThumbPos(iVModel.iThumbPosition);

    SetRect( aRect );
    ActivateL();

    iSbFrame->DrawScrollBarsNow();

    }

  2. #2
    Regular Contributor
    Join Date
    Jul 2004
    Posts
    273

    Re: Implementing Vertical ScrollBar for the Custom Control

    did you find a solution? If there's one , let me know pls.

    i am facing the same problem .


    thanks

  3. #3
    Registered User
    Join Date
    Jan 2005
    Posts
    8

    Re: Implementing Vertical ScrollBar for the Custom Control

    Design your own control

Posting Permissions

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