×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Jakarta, Indonesia
    Posts
    53

    Rich text and RFile

    Hi guys
    I use CRichText, CTextlayout, and CTextView class to show my instructions page. The text in it can be scrolled up and down. That isnt a problem to me. The problem is I don't know how to control and show the arrow bar (2 triangles) that shown between left and right softkey label. Do you guys know how to do this programmatically?
    I also have a question that i want to ask. Is it possible to make a file (using RFile class) that cannot be viewed or editted in the editor application? I want to store some valuable application settings in there. Or is there any suggestion on how to store this setting? I really appreciated.
    Lots of thanks.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168
    for scrollers see CEikScrollBarFrame class.

    all files can be seen with filebrowsers and can also be read, so if you want to hide somethinf, you need to encryt it.

    For settings I think dictionary stores are nice & easy solution.

    yucca

  3. #3
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Jakarta, Indonesia
    Posts
    53

    still cant show the arrow

    hi yucca
    thanks, For the file solution, I decided to encrypt it.
    but i still can show the 2 arrows. I have used SetScrollBarVisibilityL() and DrawScrollBarsNow() method from CEikScrollBarFrame. How can I associate the CTextView object with the CEikScrollBarFrame object? Can you tell me more specific / programatically.
    I really appreciated.
    Lots of thanks

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168
    Never really used the CTextView, so don't have any sample code available. anyway did you remember to set the SetMopParent ?

    yucca

  5. #5
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Jakarta, Indonesia
    Posts
    53
    hi yucca
    thanks again..yes i did set the setmopparent in the appui.. But i didnt see the connection?
    I decided to use CTextView because it gave me an easy way to control scrolling. Just use ScrollDisplayL method of CTextView.
    Lots of thanks

  6. #6
    Registered User
    Join Date
    May 2004
    Posts
    39
    Do the following steps to get what you want:

    1- create a CEikScrollBarFrame* in your container and TEikScrollBarModel.

    2- After ActivateL() method of your container's ConstructL() Just type the following suppose your CEikScrollBarFrame* is iSBFrame
    and TEikScrollBarModel is iScrollModel

    iScrollModel = TEikScrollBarModel( iMaxIterations, 1, 0 );

    iSBFrame = new (ELeave) CEikScrollBarFrame( this, this, ETrue );

    iSBFrame->SetScrollBarVisibilityL( CEikScrollBarFrame::EOff, CEikScrollBarFrame::EOn );

    iSBFrame->Tile( &iScrollModel );

    3- use iSBFrame->MoveVertThumbTo() to control the arrows

Posting Permissions

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