×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    131

    Red face CEikRichTextEditor unable to respond to "C" button

    i had ensured that in the properties setting, "allow undo" is set to "true"

    in the RSSI,
    even:
    flags = EEikEdwinSegmentedStorage | EEikEdwinAllowPictures | EEikEdwinAllowUndo | EEikEdwinIgnoreVirtualCursor | EEikEdwinAlternativeWrapping;

    but somehow when i run the app, and focus is on the editor, when i key in a numeric char or a "space" or a newline, i can never get back to the previously entered text :(

    why is this so? i cannot undo after i key in a space....
    what went wrong?

    pls dun respond asking me to wiki for CEikRichTextEditor, bcos i had done that.
    u might as well save the bandwidth responding somewhere else.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: CEikRichTextEditor unable to respond to "C" button

    You can still experiment with the various methods containing undo of CEikEdwin. Like CanUndo, CcpuCanUndo, SetUndoBufferL, SetUndoableText. You have not really described what you have tried.

  3. #3
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    131

    Re: CEikRichTextEditor unable to respond to "C" button

    Quote Originally Posted by wizard_hu_ View Post
    You can still experiment with the various methods containing undo of CEikEdwin. Like CanUndo, CcpuCanUndo, SetUndoBufferL, SetUndoableText. You have not really described what you have tried.
    CanUndo & CcpuCanUndo only returns a value and i was not able to set the value using these two,

    i had tried
    ->SetAllowUndo(ETrue);

    but still doesn't solves the issue,

    i tried to use SetUndoableText this way but to no luck as well,
    Code:
    iRichText1->SelectAllL();
    iRichText1->SetUndoableText(iRichText1->Selection());

  4. #4
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    131

    Unhappy Re: CEikRichTextEditor unable to respond to "C" button

    should i be trying a different component instead?

    i still cant get to solve this one :(

  5. #5
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    131

    Re: CEikRichTextEditor unable to respond to "C" button

    has anyone ever manage to solve this thing here?

    it's been a few months now......sigh

    here is my problem desc:

    i key in data to the richtext, once i key in a "space" char, i cannot press "C" to backspace anymore.....and i cant key in numeric chars even though i had these in the rssi:

    RESOURCE RTXTED r_my_notes_tab_rich_text1
    {
    numlines = 0;
    default_case = EAknEditorTextCase;
    allowed_case_modes = EAknEditorAllCaseModes;
    numeric_keymap = EAknEditorStandardNumberModeKeymap;
    default_input_mode = EAknEditorTextInputMode;
    allowed_input_modes = EAknEditorTextInputMode | EAknEditorNumericInputMode | EAknEditorSecretAlphaInputMode | EAknEditorKatakanaInputMode | EAknEditorFullWidthTextInputMode | EAknEditorFullWidthNumericInputMode | EAknEditorFullWidthKatakanaInputMode | EAknEditorHiraganaKanjiInputMode | EAknEditorHalfWidthTextInputMode;
    flags = EEikEdwinAllowPictures | EEikEdwinAllowUndo;
    special_character_table = R_AVKON_SPECIAL_CHARACTER_TABLE_DIALOG;
    avkon_flags = EAknEditorFlagEnableScrollBars | EAknEditorFlagAllowEntersWithScrollDown;
    }

  6. #6
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    131

    Unhappy Re: CEikRichTextEditor unable to respond to "C" button

    some1 pls help confirm with me that they face this issue too.....

    to repeat the problem is very simple, using carbide compiler,

    drag a richtexteditor to ur form,

    set focus to the richtexteditor and that's it.....run the application anywhere whether on device or emulator will do,

    just key in some text and then press "0" to key in the space char, after that press the "C" key to see if it manage to delete that space char.....

    very wierd.....some1 pls show me how to resolve this.....or is there any other component i shd use instead for having a basic "textbox" for my app?

  7. #7
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    131

    Talking Re: CEikRichTextEditor unable to respond to "C" button

    okok, shame on me, i admit, my bad......

    all i left out was these critical lines =)

    if (iRichText1->IsFocused())
    {
    return iRichText1->OfferKeyEventL(aKeyEvent, aType);
    }

    in my OfferKeyEventL() method....

    sigh....wasted so many months.....LOL

    thanks to wiki's example I've finally resolved this =)

Similar Threads

  1. Dialog button vs softkey button
    By apitoman in forum Symbian User Interface
    Replies: 2
    Last Post: 2011-07-19, 12:28
  2. Add a control (e.g. button) programmatically
    By ViRuSTriNiTy in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-01-02, 21:05
  3. Nokia E62/E61 kill button
    By regis.melo in forum Mobile Java General
    Replies: 1
    Last Post: 2007-05-14, 17:55
  4. command button problem with s60 phones
    By jonneymendoza in forum Mobile Java General
    Replies: 1
    Last Post: 2007-03-23, 13:28
  5. Command Button on TextBox Issue in 6230i/3510i
    By manasmchex in forum [Archived] Other Programming Discussion 关于其他编程技术的讨论
    Replies: 3
    Last Post: 2006-02-03, 17:13

Posting Permissions

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