Deleting text, characters in MULTIEDIT Widget ?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • Deleting text, characters in MULTIEDIT Widget ?

    Hello Everyone,

    I'm currently using the MULTIEDIT Widget in my application in order to act also as a simplified Text editor.

    I'm reading an external file from SDCard to populate the MULTIEDIT and then i have a kind of virtual keyboard using Buttons (implementing letters/numbers and specific function like bkpspace) that i would like to use to
    modify the MULTIEDIT content

    The problem i have is that i have API to add_text at cursor position of set_text to modify the full content but no way to remove a line content or a character at a given position

    Am i missing something or its it just not possible to implement this kind of functionality using the MULTIEDIT widget ?

    Thanks for your support ^^
  • Hi,

    You can call

    MULTIEDIT_AddKey(hItem, GUI_KEY_DELETE);

    for deleting characters on right side of the courser and

    MULTIEDIT_AddKey(hItem, GUI_KEY_BACKSPACE);


    to delete a character left of the courser.


    Regards,

    Sven
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.