Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User onur_ersen's Avatar
    Join Date
    Apr 2009
    Posts
    10
    Hello,

    I want to detect if my widget is working in miniview (home screen mode).

    Which is the best way to perform this action?

    I found this for STEW application.

    http://library.forum.nokia.com/index...465F6A738.html

    It uses

    Helper.isMiniViewMode();

    but it doesn't work.Anybody has any idea?

    Thank you very much.

  2. #2
    Nokia Developer Expert symbianyucca's Avatar
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    28,673
    the example is made for the purpose of showing on how the miniview is used, thus it should indeed work. Thus try the original codes without modifications, and see that it works..

  3. #3
    Registered User onur_ersen's Avatar
    Join Date
    Apr 2009
    Posts
    10
    Quote Originally Posted by symbianyucca View Post
    the example is made for the purpose of showing on how the miniview is used, thus it should indeed work. Thus try the original codes without modifications, and see that it works..
    Thanks symbianyucca,

    but have you tried this method on N97?

    this.getScreenSize()


    doesn't return actual widget screen size,indeed returns nothing..

    in addition to that there is a method like this :

    isMiniViewMode: function() {
    var size = this.getScreenSize();
    return ( size.height < Helper.MINI_VIEW_TRESHOLD );
    }

    what does this keyword here indicate?
    when ctrl+space after this. no method like getScreenSize() comes in code assist list???

    Thanks.
    Last edited by onur_ersen; 2009-05-18 at 08:22. Reason: additional question

  4. #4
    Nokia Developer Champion jappit's Avatar
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,391
    Hi onur_ersen,

    that 'this' keyword actually points to the Helper variable itself, that also defines the getScreenSize() method, that you should port to your code to make the isMiniViewMode() method properly work.

    Check out also this related thread:

    http://discussion.forum.nokia.com/fo...d.php?t=167357

    Pit

  5. #5
    Registered User onur_ersen's Avatar
    Join Date
    Apr 2009
    Posts
    10
    Thanks jappit.

    Now it works with that piece of code in thread you gave.

    I searched whole day in that wiki and I found nothing about this Helper class.

    there is lots of reference to that class (especially in STEW demo) but it doesnot exist.

    It makes the developer get a little confused in my opinion..

Similar Threads

  1. breakpoints disabled when running debugger.
    By nawkboy in forum Symbian C++
    Replies: 4
    Last Post: 2012-05-31, 10:45
  2. Replies: 6
    Last Post: 2007-06-28, 10:50
  3. Detect S60 Browser is not running (has been closed)
    By AlfredoRU in forum Symbian C++
    Replies: 1
    Last Post: 2006-06-08, 03:49
  4. Replies: 1
    Last Post: 2003-03-14, 06:44
  5. breakpoints disabled when running debugger
    By nawkboy in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2003-02-20, 03:43

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