Hi all,
I have problem with unicode in textbox.
I'm Vietnamese, when i write a game support my languages, textbox have problem.
What i want characters show :
EX: I want string : "tạo độc "
but when i input in textbox they show:
"t?o d?c".
problem : "tạo độc " >>><<< "t?o d?c". I want string like : "tạo độc"
I modified function DisplayString in Text.cs to Unicode and when i show text is ok , but input text into TextBox is wrong. I searched a lot of
in SMFL but no answers.
Help me. urgen.
Thanks a lot.
Not sure if I am going to support unicode to be honest. Doing so would be quite a bit of a hassle. It'd be hard to test, and I'd have to do it in a way that wouldn't negatively affect those who don't use it. I'll think about it.
He'd have to be registered on the project for that. Seeing as he is a new user with 1 post, its safe to assume he's not.
I don't think so. His problem is using unsupported characters. Your problem is keyboard layout.
Thanks Spondi and Skype, but when i see in Text.cs, in function DisplayedString only support ANSI input text.
I think this problem is potential risked if user in Chinese, Japanese, French...which countries use accented characters like "à , dè, ..." .
If possible, can we use another GUI Library (ex: http://www.codeproject.com/KB/directx/OdysseyUI.aspx), and how to include them into our project because : all thing in our project are OK but GUI lack support, ex : Textbox not support select all, double click to select all, no scrollbar , no grid,.... I hope we have another way to include and using extend GUI library.
Again thanks a lot,
Best regards,
Well the thing about Unicode support is that I am not sure what all would need to be changed to support it. There would probably need to be a lot of changes in the I/O all over the place, not just the GUI. I'll probably consider it in the future, but for now I am more focused on getting all the other components finished, THEN work on support for other languages.
Thanks Spondi,
How to add another GUI Layout into our project ? What can we ?
I have a problem about unicode, too. I can show unicode characters, but i can not input them form keyboard. I used unikey (http://www.unikey.org/) to input Vietnamese into textbox. For unicode character, this tool add them into clipboard, and then send paste message to my application, but i can't receive this msg.
Please help me. Thank you!
Hmm, didn't realize there was so much demand for unicode support...
Guess I'll add it to the issue tracker, and check it out when I have the chance.
Issue reported. See issue #172.
My problem maybe WM_PASTE message. How to implement paste event handle in this engine?
Thanks!
Add an issue for it on the issue tracker (google code). This looks somewhat the same problem as I have with azerty.
Click here for my Netgore Content Editor Tutorial video