×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    49

    SECRETED Dialog Item cannot show "***"

    Dear All,

    I am developing an application using Carbide C++ and S60 3rd SDK.

    I am creating a dialog for inputting login and password.

    For the password field, I use the SECRETED resource.
    But I encounter a strange thing.
    When I start the Dialog, after input the password and click ok, the password field cannot show "*****". Then I immediately edit the field. This time the "****" appears.

    Do anyone have idea on it?
    Below is the code in my RSS file.

    Thanks,
    Hammond

    ===============
    RESOURCE DIALOG r_login_form_dialog
    {
    flags = EEikDialogFlagNoDrag | EEikDialogFlagFillAppClientRect |
    EEikDialogFlagWait | EEikDialogFlagCbaButtons | EEikDialogFlagNoTitleBar;
    buttons = R_AVKON_SOFTKEYS_DONE_CANCEL;
    items =
    {
    DLG_LINE
    {
    type = EAknCtLastControlId;
    id = ELoginDlgID;
    control = AVKON_SETTING_ITEM_LIST
    {
    flags = EAknSettingItemNumberedStyle;
    title = qtn_login_dialog;

    items =
    {
    AVKON_SETTING_ITEM
    {
    identifier = ELoginDialogUsername;
    setting_page_resource = r_login_dialog_username_page;
    name = username_label;
    },
    AVKON_SETTING_ITEM
    {
    identifier = ELoginDialogDomain;
    setting_page_resource = r_login_dialog_domain_page;
    associated_resource = r_login_dialog_domain_binary_texts;
    name = domain_label;
    },
    AVKON_SETTING_ITEM
    {
    identifier = ELoginDialogPassword;
    setting_page_resource = r_login_dialog_password_page;
    name = password_label;
    }
    };

    };
    }
    };
    }




    RESOURCE AVKON_SETTING_PAGE r_login_dialog_password_page
    {
    number = 3;
    label = password_label;
    type = EEikCtSecretEd;
    editor_resource_id = r_password_edwin;
    }


    RESOURCE SECRETED r_password_edwin
    {
    num_letters = KMaxPasswordLength;
    }

    ====================

  2. #2
    Registered User
    Join Date
    Jun 2006
    Posts
    259

    Re: SECRETED Dialog Item cannot show "***"

    Hi,

    Check it using target device.

    Cheer's

  3. #3
    Registered User
    Join Date
    Jun 2006
    Posts
    49

    Re: SECRETED Dialog Item cannot show "***"

    Marvik,

    Thanks for your feedback.
    Actually I am new to Symbian development.
    What do you mean by "Check it using target device"?
    You mean I put the application into the real mobile device?

    I have put into a N80, the same result occurs.

    Or do you mean there is way to debug it? If so, how to make it?

    Thanks.
    Hammond

  4. #4
    Super Contributor
    Join Date
    Oct 2005
    Location
    Hyderabad,India
    Posts
    1,156

    Re: SECRETED Dialog Item cannot show "***"

    Hi,
    try something like this..it creates a dialog for login and password..

    Code:
    RESOURCE DIALOG r_dialog_username_password_query
        {
        flags = EGeneralQueryFlags;
        buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
        items =
            {
            DLG_LINE
                {
                type = EAknCtMultilineQuery;
                id = EMultilineFirstLine;
                control = AVKON_DATA_QUERY
                    {
                    layout = EMultiDataFirstEdwin;
                    label = "User Name";
                    control = EDWIN
                        {
                        flags = EEikEdwinNoHorizScrolling | EEikEdwinResizable;
                        width = 25;
                        lines = 1;
                        maxlength = 20;
                        };
                    };
                },
            DLG_LINE
                {
                type = EAknCtMultilineQuery;
                id = EMultilineSecondLine;
                control = AVKON_DATA_QUERY
                    {
                    layout = EMultiDataSecondSecEd;
                    label = "Password";
                    control = SECRETED
                        {
                        num_letters = 10;
                        };
                    };
                }
            };
        }
    Br,
    Priju

  5. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    49

    Re: SECRETED Dialog Item cannot show "***"

    Priju,

    Thanks for your feedback and I will try.

    By the way, I code like this before.
    ////
    CLoginForm *lgform = new CLoginForm(ldinfo);
    res = lgform->ExecuteLD(R_LOGIN_FORM_DIALOG);
    ////
    I create a class which will use the Dialog.
    Upon "Done" of the dialog, the information will be stored in my "ldinfo" class.

    With your way to specify the RSS, I just do similar coding to get the information?

    Anway, I will try.

    Thanks a lot.

    Hammond

Similar Threads

  1. Show Text Dialog with Menu
    By deepbeat in forum Symbian User Interface
    Replies: 8
    Last Post: 2006-07-07, 04:38
  2. Replies: 0
    Last Post: 2005-10-22, 12:34
  3. How to show Own Dialog frow View
    By studnokia in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-09-06, 11:18
  4. How to show a multiline text on a Dialog?
    By hanwang in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-11-15, 03:24
  5. how to add dialog item dynamically
    By Atyauristen in forum Symbian User Interface
    Replies: 1
    Last Post: 2002-10-09, 06: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
  •