Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User misfit.physics's Avatar
    Join Date
    Oct 2006
    Location
    philippines
    Posts
    40
    the label 'Cancel' on SK2 changes when the phone language is changed.
    i want to stick it to English "Cancel" no matter what the language used...i tried to add it to:

    RESOURCE CBA r_fpipmssettings_control_pane
    {
    buttons =
    {
    CBA_BUTTON
    {
    id = EAknSoftkeyOk;
    txt = STR_FPIPMSSettingsView_5;
    },
    CBA_BUTTON
    {
    id = EAknSoftkeyBack;
    txt = STR_FPIPMSSettingsView_6;
    },
    CBA_BUTTON
    {
    id = EAknSoftkeyCancel;
    txt = STR_FPIPMSSettingsView_40;
    }
    };
    }


    but it wont work.
    misfit - a square peg in a round hole.

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,747
    When a code uses constants as labels such as STR_FPIPMSSettingsView... in this case, it usually means that the given application is localized for some languages. However if you simply replace STR_FPIPMSSettingsView_40 with "Cancel" it should remain the same regardless the phone language.

  3. #3
    Registered User misfit.physics's Avatar
    Join Date
    Oct 2006
    Location
    philippines
    Posts
    40
    that is basically my problem, i want to use this
    CBA_BUTTON
    {
    id = EAknSoftkeyCancel;
    txt = STR_FPIPMSSettingsView_40;
    }

    so that no matter what the language is, it will always display "Cancel".
    unfortunately, i have no way to telling the app to use this cba when the setting_page is displayed.

    i made some investigation and this is what i found out..the setting page is defined below:
    STRUCT AVKON_SETTING_PAGE
    {
    WORD number = EAknSettingPageNoOrdinalDisplayed;
    LTEXT label;
    LTEXT hint_text;
    LLINK softkey_resource = 0;
    LLINK menubar= 0;
    WORD type=0xffff;
    LLINK editor_resource_id = 0;
    LLINK invalid_contents_softkey_resource = 0;
    LLINK extension = 0;
    }


    in order to override the default resource "R_AVKON_SOFTKEYS_OK_CANCEL" resource that is used by the text editor setting item, i need to define "softkey_resource" in my RSS file. however, after searching through the forum, and google...i havent found an example on how to define such.

    i tried the following:

    RESOURCE AVKON_SETTING_PAGE r_aknexsettinglist_text_setting_page
    {
    number = TEXT_SETTING_PAGE_NUMBER;
    label = qtn_exsl_text_title;
    type = EEikCtEdwin;
    softkey_resource = r_testsoftkey_resource;
    editor_resource_id = r_aknexsettinglist_edwin;
    }

    =================
    RESOURCE SOFTKEY_RESOURCE r_testsoftkey_resource <----fail here
    {
    cba = r_testsoftkey_resource_cba;
    }

    RESOURCE CBA r_testsoftkey_resource_cba
    {
    buttons =
    {
    CBA_BUTTON
    {
    id = EAknSoftkeyOk;
    txt = vince_setting_page1;
    },
    CBA_BUTTON
    {
    id = EAknSoftkeyCancel;
    txt = vince_setting_page2;
    }
    };
    }

    but it will fail always.
    misfit - a square peg in a round hole.

  4. #4
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    27,747
    There is no such structure as "SOFTKEY_RESOURCE" declared in the SDK. Try
    Code:
    softkey_resource = r_testsoftkey_resource_cba

  5. #5
    Registered User misfit.physics's Avatar
    Join Date
    Oct 2006
    Location
    philippines
    Posts
    40
    thanks. it works now.

    however, there is a side effect.

    if the 'button = R_AVKON_SOFTKEYS_OK_CANCEL' is used, when the setting text editor is empty[null], the SK1(OK) will not display(which is correct). The Sk1(OK) will only display when there is an entry of the setting text editor.

    i suspect that this behavior is defined for this resource: R_AVKON_SOFTKEYS_OK_CANCEL, i need to have a similar behavior after i override the default "softkey_resource".

    does any1 knows how to override this behavior? i tried to find the definition for R_AVKON_SOFTKEYS_OK_CANCEL but it says it is in "avkon.rsg" and I cant find it.
    misfit - a square peg in a round hole.

  6. #6
    Registered User misfit.physics's Avatar
    Join Date
    Oct 2006
    Location
    philippines
    Posts
    40
    well i guess nobody has ever tried to attempt this one...
    since it has not been documented in the forum yet and no one's reacting.

    anyhow, i hope ill find the answer soon whether on my own or with an angel.
    misfit - a square peg in a round hole.

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