Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2006

    How to redraw the whole screen


    I'm using CFbsScreenDevice to draw directly to screen. I'm in fact drawing over another application, so I can't use the direct screen access stuff that would notify me on visibility changes.

    So the problem is that when another window comes atop of the window that I'm "drawing on", my directly drawn stuff stays on the newly focused window, even though I stop the drawing (the notification comes too late to stop the drawing on time).

    So to fix this I'd need to invalidate the whole screen (all visible windows) on the rectangle that I'm drawing on. Unfortunately I haven't found any such working method.

    I found a tip about sending EEventScreenDeviceChanged event. This however has no effect (and would be quite ugly anyway). I also can't seem to be able to send redraw events through RWsSession.

    I guess that as a last resort I could draw a dummy window and hide it instantly thus forcing the window server to send the redraw events accordingly. But is there a nicer way to do this?

    Edit: Bit clarification
    Last edited by Theril; 2008-10-09 at 13:35.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: How to redraw the whole screen

    Depending on your application http://discussion.forum.nokia.com/fo...ad.php?t=99603 may offer a viable alternative.

    Anyway, if you have to stick with your approach, and the dummy-window does not work for some reason, you can still store the original content of the screen, and restore it when you get that late notification.

  3. #3
    Registered User
    Join Date
    Nov 2006

    Re: How to redraw the whole screen

    Thanks a lot, this worked great and is a much nicer solution.

Similar Threads

  1. Problem with E90 and secondary screen
    By Tatanka.nbr1 in forum Symbian
    Replies: 5
    Last Post: 2008-06-27, 10:01
  2. Direct Screen Access (Please Comment!)
    By earamsey in forum Symbian
    Replies: 1
    Last Post: 2006-07-28, 18:34
  3. Redraw text on screen using USER::AFTER()
    By say2paul in forum Symbian
    Replies: 8
    Last Post: 2006-03-04, 18:09
  4. Need to redraw my whole screen
    By lazmous in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2006-02-11, 11:08
  5. Forcing screen to redraw
    By brokencat in forum Symbian User Interface
    Replies: 1
    Last Post: 2004-10-26, 19:53

Posting Permissions

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