×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    34

    how to set input mode in a text editor.

    Hi,
    I have created a text editor using CEikEdwin class.
    i am getting the text editor on emulator screen but not able to write anything in that text editor.
    I think we need to set some flags for that but i am not getting that.
    My Code for text editor:
    iEditor = new (ELeave)CEikEdwin;
    iEditor->SetContainerWindowL( *this );
    iEditor->ConstructL(CEikEdwin::ELineCursor,0,15,1);
    iEditor->SetBackgroundColorL(KRgbBlack);
    iEditor->SetCursorPosL(0,EFalse);
    iEditor->SetTextLimit(15);
    iEditor->SetFocus( ETrue,ENoDrawNow);
    iEditor->ClearSelectionL();

    Please help

    thanks

  2. #2
    Regular Contributor
    Join Date
    Jun 2008
    Posts
    213

    Re: how to set input mode in a text editor.

    Check for edwin flags in ressource file.
    Maybe your editor is read-only.
    You can also set the edwin flags in a bitwise manner

    Regards
    Assayag

  3. #3
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: how to set input mode in a text editor.

    Have you modified your CountComponentControls() and ComponentControl() method of your class??

  4. #4
    Registered User
    Join Date
    Feb 2007
    Location
    Tampere
    Posts
    370

    Re: how to set input mode in a text editor.

    Hi,

    Have you forwarded key events to editor in offerkeyeventL?
    do something like this in offerkeyeventL()
    Code:
    // Forward key events to editor. In real life only do this if editor is focused
    
        return iEditor->OfferKeyEventL(aKeyEvent, aType);
    Regards

    - MVP
    "Dare To Dream" - A.P.J.Kalam

Similar Threads

  1. Can't switch numeric input to text input in RichTextEditor
    By mobilepig in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-01-03, 05:14
  2. rich text editor problem (switcing from text to numbers)
    By noam segal in forum Symbian User Interface
    Replies: 1
    Last Post: 2007-10-31, 14:01
  3. How to set WLAN IAP network mode to Ad-hoc instead of Infrastructure?
    By PopAndDestroy in forum Wired and Wireless interfaces (Closed)
    Replies: 2
    Last Post: 2007-08-29, 08:04
  4. CEikEdwin problem(plain text editor)
    By hossein_ashrafi in forum Symbian User Interface
    Replies: 3
    Last Post: 2007-04-17, 10:30
  5. how to set the text SIZE in rich text editor?
    By decryptor in forum Symbian User Interface
    Replies: 3
    Last Post: 2005-10-01, 19:08

Posting Permissions

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