Discussion Board

Results 1 to 4 of 4

Hybrid View

  1. #1
    Registered User sandeepintg's Avatar
    Join Date
    Oct 2012
    Posts
    11
    my code is
    Code:
    RESOURCE DIALOG r_gps_request_position_wait_note
        {
        flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect |
    
                EEikDialogFlagCbaButtons | EEikDialogFlagWait;
    
        buttons = R_AVKON_SOFTKEYS_CANCEL;
        items = 
            {
            DLG_LINE
                {
                type = EAknCtNote;
                id = ECidWaitNote;//get error here
                control = AVKON_NOTE
                    {
                    layout = EWaitLayout;
                    singular_label = "Requesting position"; // its better to move this string into LOC file
                    animation = 0;//R_QGN_GRAF_WAIT_BAR_ANIM;
                    };
                }
            };
        }

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    What error do you get?

    Side note: id is a number. ESomething in Symbian C++ is the naming convention of enumeration members, like "enum TMyEnum {ESomething=23, ESomethingElse, ELast};". So make sure that ECidWaitNote is defined somewhere, typically in a .hrh file. That is also a naming convention, since .hrh files contain enum-s only, and they can be #include-d into C/C++ code and into resource files (.rss) too.

  3. #3
    Registered User sandeepintg's Avatar
    Join Date
    Oct 2012
    Posts
    11
    hi, I added it to the .hrh file...
    also what is the significance of this line in resource file
    animation = R_QGN_GRAF_WAIT_BAR_ANIM;

    control = AVKON_NOTE
    {
    layout = EWaitLayout;
    singular_label = "Requesting position"; // its better to move this string into LOC file
    animation = R_QGN_GRAF_WAIT_BAR_ANIM;
    };

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    That is a reference to an other resource.
    As you can see, your own resource has name r_gps_request_position_wait_note. However when it gets compiled, it will get a #define-d identifier, R_GPS_REQUEST_POSITION_WAIT_NOTE, that is the one you use when launching this note.
    R_QGN_GRAF_WAIT_BAR_ANIM is also such name, of a resource compiled by someone else, practically Nokia.
    For the role of the line, it selects an animation. There may be multiple ones, or at least there is the possibility of having multiple ones.

Similar Threads

  1. wait dialog without defining dialog in rss file
    By soni_neeraj in forum Symbian C++
    Replies: 4
    Last Post: 2010-08-04, 05:15
  2. Erro on setdefaultview
    By casehost in forum Symbian User Interface
    Replies: 3
    Last Post: 2010-02-05, 12:12
  3. Obfuscation Erro With NetBeans 6.1
    By sandeepsandeep in forum Mobile Java General
    Replies: 2
    Last Post: 2008-10-22, 08:28
  4. Erro in .pkg file
    By pornima in forum Symbian C++
    Replies: 6
    Last Post: 2008-09-12, 13:30
  5. erro
    By ztlztl in forum Symbian
    Replies: 1
    Last Post: 2003-10-27, 08:23

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