×

Discussion Board

Results 1 to 3 of 3

Thread: secret editor

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    41

    secret editor

    hi guys,

    i am trying to create a secret editor i.e a password field in a form but i am able to get a field but i am not getting the letters in the "*" form ...and the code i ahve written for the eidtor control line is ,

    /************code******************/

    /*const TInt KMySecretId = 1;
    _LIT(KSecretLabel,"PASSWORD");

    CCoeControl* iSecretControl = CreateLineByTypeL(KSecretLabel, KMySecretId, EEikCtEdwin, NULL);

    iEdwin = static_cast<CEikEdwin*>(iSecretControl);
    TCoeInputCapabilities cap3(TCoeInputCapabilities::ESecretText);
    iEdwin->ConstructL( EEikEdwinNoHorizScrolling |EEikEdwinLineCursor| EEikEdwinNoAutoSelection | EEikEdwinResizable, 20, 100, 10 );
    iEdwin->SetAknEditorFlags(EEikFormEditModeOnly | EAknEditorSecretAlphaInputMode);

    iEdwin->SetInputCapabilitiesL(cap3);
    iEdwin->SetMaxLength(8);
    iEdwin->SetAknEditorInputMode(EAknEditorSecretAlphaInputMode);
    //iEdwin->SetAknEditorAllowedInputModes(EAknEditorSecretAlphaInputMode);
    //iEdwin->SetAknEditorCurrentInputMode(EAknEditorSecretAlphaInputMode);
    //iEdwin->SetInputCapabilitiesL(cap3);
    //iEdwin->CreateTextViewL();

    i am gettin a field but i cant get the letters changed in to * form so can anyone guide me through that ....

    any other way to get this done...

    and all the secret edit controls must be done without resource files.....

    thanks for the help,
    Chand.M
    Last edited by mallikachand; 2008-05-29 at 10:26. Reason: needed

  2. #2
    Super Contributor
    Join Date
    Jul 2007
    Posts
    596

    Arrow Re: secret editor

    Quote Originally Posted by mallikachand View Post
    hi guys,

    i am trying to create a secret editor i.e a password field in a form but i am able to get a field but i am not getting the letters in the "*" form ...and the code i ahve written for the eidtor control line is ,

    /************code******************/

    /*const TInt KMySecretId = 1;
    _LIT(KSecretLabel,"PASSWORD");

    CCoeControl* iSecretControl = CreateLineByTypeL(KSecretLabel, KMySecretId, EEikCtEdwin, NULL);

    iEdwin = static_cast<CEikEdwin*>(iSecretControl);
    TCoeInputCapabilities cap3(TCoeInputCapabilities::ESecretText);
    iEdwin->ConstructL( EEikEdwinNoHorizScrolling |EEikEdwinLineCursor| EEikEdwinNoAutoSelection | EEikEdwinResizable, 20, 100, 10 );
    iEdwin->SetAknEditorFlags(EEikFormEditModeOnly | EAknEditorSecretAlphaInputMode);

    iEdwin->SetInputCapabilitiesL(cap3);
    iEdwin->SetMaxLength(8);
    iEdwin->SetAknEditorInputMode(EAknEditorSecretAlphaInputMode);
    //iEdwin->SetAknEditorAllowedInputModes(EAknEditorSecretAlphaInputMode);
    //iEdwin->SetAknEditorCurrentInputMode(EAknEditorSecretAlphaInputMode);
    //iEdwin->SetInputCapabilitiesL(cap3);
    //iEdwin->CreateTextViewL();

    i am gettin a field but i cant get the letters changed in to * form so can anyone guide me through that ....

    any other way to get this done...

    and all the secret edit controls must be done without resource files.....

    thanks for the help,
    Chand.M
    why don't u try CEikSecretEditor class.
    That will be easier to handle

    Thanks

  3. #3
    Regular Contributor
    Join Date
    Dec 2007
    Location
    Banglore,India
    Posts
    64

    Re: secret editor

    Which resource you have given for your text box. it should be
    RESOURCE SECRETED and not RESOURCE EDWIN

Similar Threads

  1. Is it possible to implement a secret editor using CEikEdwin
    By JackSu in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-01-10, 00:29
  2. Replies: 0
    Last Post: 2007-11-29, 10:53
  3. Secret Editor
    By Carolinline in forum Symbian
    Replies: 5
    Last Post: 2006-11-12, 22:15
  4. secret editor dont show * and ...
    By saurbh_g in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-12-31, 13:33
  5. problems in secret editor in symbian.
    By platinnum in forum Symbian
    Replies: 3
    Last Post: 2005-04-25, 08:02

Posting Permissions

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