×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor
    Join Date
    Feb 2004
    Posts
    130

    problem with CAknNumericSecretEditor

    hi there....

    i have a few problems. here is the explanation about my problem.

    RESOURCE NUMSECRETED r_aknexeditor_view_numsecret_editor
    {
    num_code_chars = 6;
    }

    TResourceReader reader;
    iCoeEnv->CreateResourceReaderLC(reader, R_AKNEXEDITOR_VIEW_NUMSECRET_EDITOR);
    iPassword1= new (ELeave) CAknNumericSecretEditor();
    iPassword1->SetContainerWindowL(*this);
    iPassword1->ConstructFromResourceL(reader);
    CleanupStack::PopAndDestroy(); // Resource reader
    iPassword1->SetExtent(TPoint(60,45), iPassword1->MinimumSize())

    1. i want to draw the numsecreted textbox but... first i want to draw a spalsh screen. how can i do that because the text box has already drawn in the constructl? if i put the setExtent line in the DrawDialog() method which is after DrawSpalsh() method, the program will error. can anybody help me? can i just use 1 container?

    2. the text box for numsecreted is drawn. how about if i dont want to draw the textbox but... i want to appear star * every time i push a button?

    really need help.

    thanks in advance

    Rx-lee

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165
    you could put tghe splash in different container and show it first.

    Or you could construct the editor after doing the splash, then you need to be sure that you tell outside world that you have zero for component count till you have constructed the editor, so you wont get Kern-Exec 3:s when re-drawing the screen.

    Anyway, try adding the error descritor shown in your screen when you get errors. They help solving the problems greatly. Also putting breakpoints to your code and posting the excat line in your post, greatly improves your changes of getting good answers fast.

    yucca

  3. #3
    Regular Contributor
    Join Date
    Feb 2004
    Posts
    130
    hello symbianyucca

    thanks for the assist.

    i wonder how to know the error descriptor? to be shown in the emulator is by usign iEikonEnv rite? but what is the error descriptor?

    thanks

    Rx-lee

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165
    basically I was refering to the error note shown when the applications crashes.

    As a default, it says just "application closed" or so, anyway to get it working correctly see this link: http://www.newlc.com/article.php3?id_article=150

    yucca

  5. #5
    Regular Contributor
    Join Date
    Feb 2004
    Posts
    130
    hai symbianyucca,

    sori just read the link u gave.
    i had read that link, but i'm still confuse on how to make ErrRd file. is it by using:

    _LIT(KErr, "c:\\system\\bootdata\\ErrRd");

    TInt err;
    RFs sessionResp;
    User::LeaveIfError(sessionResp.Connect());
    CleanupClosePushL(sessionResp);
    RFile FileResp;
    err=FileResp.Replace(sessionResp,KErr,EFileWrite);

    //clean up write session
    FileResp.Close();
    CleanupStack::PopAndDestroy();//sessionResp

    or not? if yes... where should i put that code? i put it in the container's ContructL().
    do you have any clue? have u tried it?

    Thanks for the answer
    Rx-lee

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165
    You could do it with Fexplorer, great free tool made by dominic. No need really to do it by code, unless you really want to, anyway brief look to your code, and it looks like that it would also work ok.

    yucca

Posting Permissions

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