×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    6

    [moved] Using Rich Text Editor with scroll bar

    I am using CEikRichTextEditor to draw some text on screen.The editor works fine and displays the text on screen,But it hides the background screen,in other words i need my RichTextEditor to be transparent to show background screen on which we have placed richtexteditor . The scrollbar is also working and i need it to work as it is when background image is visible.
    Any Help??




    Regards
    Hassan Imtiaz

  2. #2
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    213

    Re: Using Rich Text Editor with scroll bar

    Hi,
    I think you should build a custom control derived from CEikRichTextEditor and MCoeControlBackground and there override the Draw function
    If you call DrawBackground of your custom background, it will call this Draw function, there you have to manage transparency.

  3. #3
    Nokia Developer Champion
    Join Date
    May 2004
    Posts
    2,267

    Re: Using Rich Text Editor with scroll bar

    Quote Originally Posted by hassan.imtiaz View Post
    I am using CEikRichTextEditor to draw some text on screen.The editor works fine and displays the text on screen,But it hides the background screen,in other words i need my RichTextEditor to be transparent to show background screen on which we have placed richtexteditor . The scrollbar is also working and i need it to work as it is when background image is visible.
    Any Help??

    Regards
    Hassan Imtiaz
    Hi,

    I uploaded several examples show how to custom editor background, hope one of them can help you.

    http://wiki.forum.nokia.com/index.ph...kground%29.zip
    http://wiki.forum.nokia.com/index.ph...kground%29.zip
    http://wiki.forum.nokia.com/index.ph...ntEdwin%29.zip
    http://wiki.forum.nokia.com/index.ph...kground%29.zip
    http://wiki.forum.nokia.com/index.ph...kground%29.zip
    http://wiki.forum.nokia.com/index.ph...ntEdwin%29.zip

    Regards

    Ziteng Chen

  4. #4
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

  5. #5
    Nokia Developer Champion
    Join Date
    May 2004
    Posts
    2,267

    Re: Using Rich Text Editor with scroll bar

    Quote Originally Posted by A.A.M. View Post
    All these links are broken.

    But in this post everything is fine:
    Whoops, it's my fault. Thank you for your correction :)

    Ziteng Chen

  6. #6
    Registered User
    Join Date
    Jul 2009
    Posts
    6

    Re: Using Rich Text Editor with scroll bar

    Thanks for all ur replies,now i called this function
    iRichText1->SetSuppressBackgroundDrawing(ETrue);
    As a result background gets transparent but when i scroll down or scroll up text of rich text editor is disturbed and it looks like that text is drawn every time it is scrolled.Some lines of text are drawn multiple times.But when i comment out this function call it scrolls correctly.But background is not transparent.
    Any Suggestions??




    Regards
    Hassan Imtiaz

  7. #7
    Registered User
    Join Date
    May 2004
    Posts
    30

    Re: Using Rich Text Editor with scroll bar

    Hi Hassan,

    I know you posted your post months ago but I am facing the same problem. Have you found a solution for the content to display properly after scrolling?

    Thanks!

    Sihem

  8. #8
    Nokia Developer Champion
    Join Date
    May 2004
    Posts
    2,267

    Re: Using Rich Text Editor with scroll bar

    Quote Originally Posted by princesse_sahara View Post
    Hi Hassan,

    I know you posted your post months ago but I am facing the same problem. Have you found a solution for the content to display properly after scrolling?

    Thanks!

    Sihem

    Hi,

    Here is a wiki article for the topic, hope it can help you.

    "How to use custom background for text editors"
    http://wiki.forum.nokia.com/index.ph...r_text_editors

    Regards

    Ziteng Chen

Similar Threads

  1. Scroll bar problem
    By RockyM in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-09-24, 10:32
  2. make textbox in canvas
    By mahdi68 in forum Mobile Java General
    Replies: 7
    Last Post: 2009-09-20, 11:46
  3. [moved] Scroll Bar on imageview
    By shahidur.rahman in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-03-03, 21:42
  4. reseting Alert's scroll bar
    By ooooooo in forum Mobile Java General
    Replies: 0
    Last Post: 2004-04-06, 16:25

Posting Permissions

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