Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User vmatikainen's Avatar
    Join Date
    Nov 2006
    Posts
    46
    I have a container with couple CEikImages inside. When I change the content, how do I report the change to MEikCommandObserver so that the area of the control should be redrawn. Everything else works perfectly as I know that the content has actually changed, because it is redrawn with new content when opening and closing the menu.

    BR, Vikke

  2. #2
    Registered User vmatikainen's Avatar
    Join Date
    Nov 2006
    Posts
    46
    Copy pasting my own question to google resulted in immediate results. So when you need to redraw the CCoeControl, just call DrawNow() and let the window-controller take care of the rest.

    Case closed.

  3. #3
    Regular Contributor navjotsingh1979's Avatar
    Join Date
    Oct 2004
    Location
    Tokyo,Japan
    Posts
    289
    for any CCoeControl type you should invoke DrawDeffered() method , it has a few advantages over DrawNow() , in case if you need to refresh/redraw your control again and again .

    Following is the advanted as quotted in the SDK documentation

    "An advantage of using DrawDeferred() is that if you make multiple calls to DrawDeferred() on the same area of a control, the window server will not generate a redraw event to do drawing that has already been superseded. If you make multiple calls to DrawNow(), however, all of them get processed, even if they have already been superseded by the time they are processed."

    I hope its upto you to decide which one is efficient for your application - DrawNow() or DrawDeffered() ,


    Regards'
    Neo

Similar Threads

  1. Replies: 5
    Last Post: 2007-10-23, 14:50
  2. Audio Input Stream on N80
    By tkaihock in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2006-06-30, 09:15
  3. AppUi - Control communication.
    By Subotai4Winds in forum Symbian C++
    Replies: 1
    Last Post: 2005-01-20, 08:53
  4. Replies: 1
    Last Post: 2004-11-22, 04:41
  5. Vodafone Content Control - HELP
    By richardwylie in forum Mobile Web Site Development
    Replies: 1
    Last Post: 2004-07-02, 07:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved