×

Discussion Board

Results 1 to 2 of 2

Hybrid View

  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Posts
    2,426

    vertical scroll bar for CTextView

    Hello.
    I want to add a vertical scroll bar to the CTextView(& underlying CRichText) object. It wasn't obvious to me if CTextView exposed methods to do this. I was going to create a CEikScrollBar object and have my class definition inhert from CEikScrollBarObserver; however, neither CTextView or CRichText inherits from CCoeControl.

    Can someone advise me as to how this is typically done or otherwise point me to an example?

    Thank you.

    Posted by Robert Bertolino, Robert_Bertolino@us.ibm.com
    on April 30, 2002 at 17:14

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Posts
    2,426

    RE: vertical scroll bar for CTextView

    Posted by Forum_Nokia Developer_Support, communicator.developer@nokia.com
    on April 30, 2002 at 17:29



    Are you able to use the CEikRichTextEditor class instead of CTextView and CRichText - then the scrollbars will be handle for you by that class. You would need to enable the scrollbars by calling:

    richTextEd->CreateScrollBarFrameL()->SetScrollBarVisibilityL(CEikScrollBarFrame::EOff,CEikScrollBarFrame::EAuto);

    Regards
    FN Developer Support

Posting Permissions

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