Results 1 to 5 of 5

Thread: There is something worng with textedit?

  1. #1
    Lesser Knight
    Join Date
    Feb 2012
    Location
    Malaga,Spain
    Posts
    30

    Default There is something worng with textedit?

    Hi.

    I am not sure why, but the text edit entity is not accepting spaces in full ascii mode.
    If you press spacebar n times, you only get a dot '.' but if you press backspace, you need to press it that n times to erase text.
    For example:
    If you press 'a', then press 'f' and then spacebar twice, you got a "af."

    Is there anything wrong with text edit or is my fault?

    Thank you.

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,377

    Default

    What device? There are some problems on some Android text input systems.. need more details
    Seth A. Robinson
    Robinson Technologies

  3. #3
    Lesser Knight
    Join Date
    Feb 2012
    Location
    Malaga,Spain
    Posts
    30

    Default

    Hi.

    Sorry but I forgot to note that was in Win32, OSX and iOS where I have tested my application.

    Thank you.

  4. #4
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,377

    Default

    I just did a quick test with RTSimpleApp on Win and it let me enter spaces, backspace and "." correctly.

    But I did have to uncomment the following lines in EnterNameMenu.cpp:

    Code:
    //Uncomment these:
    //if you wanted to allow spaces and other symbols, change to "loose" filtering like this:
    pButtonEntity->GetComponentByName("InputTextRender")->GetVar("filtering")->Set(uint32(InputTextRenderComponent::FILTERING_LOOSE));
    
    //you also need to do this for loose filtering to make sure the best keyboard is chosen on the device
    pButtonEntity->GetComponentByName("InputTextRender")->GetVar("inputType")->Set(uint32(InputTextRenderComponent::INPUT_TYPE_ASCII_FULL));
    Maybe adding the FILTERING_LOOSE thing above will fix it. (Without that, it will not allow spaces or punctuation)

    Also, please note that unicode (chinese characters/kanji) is not supported.
    Seth A. Robinson
    Robinson Technologies

  5. #5
    Lesser Knight
    Join Date
    Feb 2012
    Location
    Malaga,Spain
    Posts
    30

    Default

    Hi.

    Thank you Seth.

    Yes, I have the InputTextRenderComponent::INPUT_TYPE_ASCII_FULL flag, but missed the filtering flag.

    Now it is working rigth.

    Thank you again.

Bookmarks

Bookmarks

Posting Permissions

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