×

Discussion Board

Results 1 to 2 of 2

Thread: CWindowDrawer

  1. #1
    Regular Contributor
    Join Date
    Jun 2007
    Location
    Bangkok
    Posts
    84

    CWindowDrawer

    CWsScreenDevice

    http://wiki.forum.nokia.com/index.ph...tion_framework

    I try to test above code but "blue window" is shown at all Symbian UI.

    Is it possible that this this "blue window" will be shown only at "idle screen" UI?

    Code Example
    ----------------
    iWindow=RWindow(iWsSession);
    User::LeaveIfError(iWindow.Construct(iWindowGroup, (TUint32)&iWindow));

    TPixelsTwipsAndRotation SizeAndRotation;
    iScreenDevice->GetDefaultScreenSizeAndRotation(SizeAndRotation);

    iWindow.Activate();
    //iWindow.SetExtent(TPoint(0,0),SizeAndRotation.iPixelSize);
    iWindow.SetExtent(TPoint(0,36),TSize(176,144));
    iWindow.SetBackgroundColor(KRgbBlue);
    // iWindow.SetOrdinalPosition(0,ECoeWinPriorityNormal);
    iWindow.SetOrdinalPosition(0, ECoeWinPriorityAlwaysAtFront);
    iWindow.SetNonFading(ETrue);
    iWindow.SetVisible(ETrue);


    I would like to show "iwindow" only when user browse his/her phone at idle screen

    iWindow.setVisible(ETrue);

    but when user browse his/her phone at Contacts, receive call, etc...
    so I would like to set

    iWindow.setVisible(EFalse);

    How can I do this? Thankyou in advance.
    Last edited by junmobus; 2007-06-30 at 10:56.

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

Posting Permissions

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