×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    84

    control/window visibility

    Hi,

    My app shows only the container(control) which draws something(eg. some lines) periodically. In HandleForegroundEvent(), if the app gets in background I stop the drawing process so that to save processor power.
    When in the foreground the app draws its stuff ok. The problem comes if the keypad is locked automatically, eg. when the slider is closed.
    The app gets a notification it is no more in foreground and does stop drawing.(so it seems the keylocker has a front window). But my main screen is still visible so I dont want to stop drawing in this situation , when the keypad is locked. The app is a simple one-main-container on the stack which draws in full screen. (not view).
    So, my question, how do I detect that my container/application has no focus but it is still visible ?
    CCoeContainer::IsVisible returns what MakeVisible has set, eg. ETrue. so, even the app is in background it retuns ETrue.
    IsFocused also is useless. If the keypad is locked IsFocused returns EFalse, which is ok, but the control is still visible on screen.

    thank you
    tek

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

    Re: control/window visibility

    You can try tracking changes in focused window group (RWsSession::GetFocusWindowGroup - if you search for it, you will also get some idea about how to detect changes in general, but you can also use HandleForegroundEvent as a first try). Then you can use CApaWindowGroupName::AppUid to get the Uid of the focused application.
    If you are lucky, there can be some kind of a "keylock" application, and if it gets the focus immediately after your application, your application is probably still visible.

    If the HandleForegroundEvent-approach does not work, you can get some ideas from http://discussion.forum.nokia.com/fo...ad.php?t=99603 for the RWsSession::EventReady-approach.

  3. #3
    Regular Contributor
    Join Date
    Jun 2003
    Posts
    84

    Re: control/window visibility

    I will give that a try although I hope to find a simpler solution.
    Thank you,
    tek

Similar Threads

  1. CAknForm: dinamically change lines visibility
    By slibrenti in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-09-13, 10:59
  2. Replies: 0
    Last Post: 2005-05-13, 12:50
  3. Bluetooth visibility
    By ajsanchez in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2003-11-06, 10:46
  4. Sender Visibility
    By mathulang in forum General Messaging
    Replies: 3
    Last Post: 2003-05-02, 07:27
  5. Sender Visibility
    By mathulang in forum General Development Questions
    Replies: 0
    Last Post: 2003-04-28, 05:31

Posting Permissions

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