×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    159

    CEikRichTextEditor not refreshed until scroll

    Hi,

    I have a problem, which I have solved, but I don't like the solution.

    I'm using CEikRichTextEditor to present a long text, and use scroll bars. Problem is that the control appears empty, and only when I scroll down, below the bottom of the first page, the text is displayed.

    The way I've solved it is to produce dummy cursor movements right after text is loaded into the CEikRichTextEditor (at the end of ContructL method of the container control):

    Code:
    iEditor->SetCursorPosL( 1, EFalse );
    iEditor->SetCursorPosL( 0, EFalse );
    Anyone knows of a cleaner way?

    Thanks,
    Nadav

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,684

    Re: CEikRichTextEditor not refreshed until scroll

    Try SetFocus prior to modifying the contents of the editor.

  3. #3
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    159

    Re: CEikRichTextEditor not refreshed until scroll

    Quote Originally Posted by wizard_hu_ View Post
    Try SetFocus prior to modifying the contents of the editor.
    Already tried this. It is done by the auto-generated code created by Carbide UI Designer.

  4. #4
    Regular Contributor
    Join Date
    Jun 2008
    Location
    Tianjin
    Posts
    156

    Re: CEikRichTextEditor not refreshed until scroll

    Did you invoke the DrawDeferred() funtion?
    anson_zhao

  5. #5
    Regular Contributor
    Join Date
    Nov 2007
    Posts
    159

    Re: CEikRichTextEditor not refreshed until scroll

    Yes, I did. It didn't help. Also tried to call the container's DrawDeferred, and it didn't help either. Very strange. It is clearly a problem of redrawing, because when I send the application to the background (short press on the menu) and then bring it back again (long press on the menu and then choosing the application), the text appears.

    More accurately: The first letter of the text always appears. The reset of the text does not appear, even though I can navigate with the cursor through the invisible text.

    Thanks,
    Nadav

Similar Threads

  1. richtexteditor landscape - scroll not visible
    By s4028469 in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-10-16, 00:32
  2. Scroll bars in a list box (Series 60)
    By krnsoft in forum Symbian User Interface
    Replies: 30
    Last Post: 2007-02-05, 06:12
  3. Replies: 0
    Last Post: 2006-02-22, 10:06
  4. Return of the non-appearing scroll bar
    By joutsa in forum Symbian User Interface
    Replies: 7
    Last Post: 2005-11-15, 18:02
  5. Replies: 0
    Last Post: 2004-08-06, 04:56

Posting Permissions

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