×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    10

    URGENT- EDWIN is readonly

    i have managed to create a edwin on a toolband and in the application view also but both are readonly a can't get to write anything in none of them...
    why??? any ideea??

    the one maked from code :
    Code:
    	iEditor = new (ELeave) CEikEdwin;
    	iEditor->SetContainerWindowL(*this);
    	iEditor->ConstructL(EEikEdwinWidthInPixels, 170, 200, 7);
    	iEditor->SetFocus(ETrue);

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    Luttenberg (Netherlands)
    Posts
    577

    Re: URGENT- EDWIN is readonly

    Hi,

    there are 2 options:
    1) the control is not on the control stack. Use CAknAppUi::AddToStackL().
    2) the edwin control is read-only. Unset the flag EEikEdwinReadOnly.

    I am working on a application which uses a CEikEdwin. I have the following resource definition:

    RESOURCE EDWIN r_brightness_editor
    {
    width = 100;
    lines = 1;
    maxlength = 3;

    flags = EEikEdwinWidthInPixels;
    avkon_flags = EAknEditorFlagNoT9 | EAknEditorFlagNoEditIndicators;

    allowed_input_modes = EAknEditorNumericInputMode;
    default_input_mode = EAknEditorNumericInputMode;

    default_case = EAknEditorAllCaseModes;
    allowed_case_modes = EAknEditorAllCaseModes;

    numeric_keymap = EAknEditorPlainNumberModeKeymap;

    // special_character_table = R_AVKON_URL_SPECIAL_CHARACTER_TABLE_DIALOG;
    } /* r_brightness_editor */

    and code to create:

    iEditor = new(ELeave) CEikEdwin;
    iEditor->SetContainerWindowL(*this);
    iCoeEnv->CreateResourceReaderLC(reader, R_BRIGHTNESS_EDITOR);
    iEditor->ConstructFromResourceL(reader);
    CleanupStack::PopAndDestroy(); // reader
    Msg.Format(_L("%d"), current);
    iEditor->SetTextL(&Msg);
    iEditor->SetPosition(TPoint(10, 100));
    iEditor->SetFocus(ETrue);

    Kind regards,

    Rene Heuven
    PCA Mobile
    E-mail: rene@pcamobile.com

Similar Threads

  1. Custom Edwin Background
    By digitaltejas in forum Symbian C++
    Replies: 0
    Last Post: 2005-06-13, 12:50
  2. Custom Edwin Background
    By digitaltejas in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-06-13, 12:47
  3. Copying from readonly Edwin
    By csovi in forum Symbian User Interface
    Replies: 4
    Last Post: 2004-04-23, 09:42
  4. Can EDWIN count words partly?
    By kcome in forum Symbian
    Replies: 2
    Last Post: 2004-01-20, 03:47
  5. risezable edwin
    By djazia in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-07-31, 17:31

Posting Permissions

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