×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Oct 2006
    Posts
    30

    CeikEdwin on View

    Hi,
    I have trouble with my CEikEdwin gui element on my view.
    I can't type no characters or numbers in the editor field.

    //rss
    RESOURCE EDWIN r_edwin
    {
    flags = EAknEditorFlagDefault;
    width = 50;
    lines= 1;
    maxlength = 255;
    }


    //view
    void CpppAppView::ConstructL( const TRect& aRect )
    {
    TResourceReader reader;
    iCoeEnv->CreateResourceReaderLC( reader, R_EDWIN );
    iTextBox = new ( ELeave ) CEikEdwin;
    iTextBox->SetContainerWindowL( *this );
    iTextBox->ConstructFromResourceL( reader );
    CleanupStack::PopAndDestroy();
    SetRect( aRect );
    ActivateL();
    }


    TKeyResponse CpppAppView::OfferKeyEventL(const TKeyEvent& aKeyEvent,TEventCode aType)
    {
    return iTextBox->OfferKeyEventL(aKeyEvent,aType);
    }


    The editor appears on view, the coursor is available, but I cant enter text or numbers
    I've tested all flags, no way


    Best regards
    Last edited by koreson; 2006-11-04 at 09:28.

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

    Re: CeikEdwin on View

    Hi,

    iTextBox ->SetFocus(ETrue); Add this code after ConstructFromResourceL().

    Cheer's

  3. #3
    Registered User
    Join Date
    Oct 2006
    Posts
    30

    Re: CeikEdwin on View

    @marvik_34

    sorry, that has no effect.
    All these thinks I have tried always.
    There are complete examples in the internet, but in my case it doesn't work :(


    I have create an Edwin without using resources:

    iEditor = new (ELeave) CEikEdwin;
    iEditor->SetContainerWindowL(*this);
    iEditor->ConstructL();
    iEditor->ActivateL();

    this way works

    But I want work with resources.

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

    Re: CeikEdwin on View

    Hi,

    Edition with which you are working?

    Cheer's

  5. #5
    Registered User
    Join Date
    Oct 2006
    Posts
    30

    Re: CeikEdwin on View

    Oh, sorry,

    Carbide .vs
    S60 3rd. MR SDK
    Code runs in the emulator and on the phone
    Debug with WINSCW
    Release GCCE

    Is this what you want to know ?

  6. #6
    Registered User
    Join Date
    Oct 2006
    Posts
    30

    Re: CeikEdwin on View

    I play a litte with the edit.
    SetText, Colors, Scrollbars a possible, but I can't enter text or numbers

    It seems the edwin has a read-only proberty

Similar Threads

  1. Traditional Symbian view architecture
    By joelshaf in forum Symbian
    Replies: 4
    Last Post: 2007-03-15, 14:38
  2. View architecture?
    By abrahim in forum Symbian
    Replies: 2
    Last Post: 2006-09-07, 05:09
  3. Trigger event after view is Activated?
    By inc0gn1t007 in forum Symbian
    Replies: 0
    Last Post: 2006-03-29, 02:55
  4. CEikEdwin control in a TabScreen View
    By stefass in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-02-16, 11:07
  5. Replies: 1
    Last Post: 2005-10-17, 04: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
  •  
×