Search found 18 matches
- Wed Nov 03, 2010 16:47
- Forum: Help
- Topic: [solved] Russian symbols in custom CEGUI::String
- Replies: 16
- Views: 9497
Re: [solved] Russian symbols in custom CEGUI::String
For hard-coded strings you should use English only. And have the strings translated into Russian at run-time by GNU gettext or similar library (I don't work with MSVC). I tried to input manually Russian chars into an EditBox and it's displayed fine. I'm using arial.ttf from Russian Windows XP. http...
- Wed Nov 03, 2010 14:25
- Forum: Help
- Topic: [solved] Russian symbols in custom CEGUI::String
- Replies: 16
- Views: 9497
Re: Russian symbols in custom CEGUI::String
If all this questions "is completely over the top", please, help me ) The questions are not OTT, it's the 'solution' that is. For static strings, you just have to do, for example (and to re-iterate what was already said above, by others): _uiTalkingLog->appendText((const CEGUI::utf8*)&quo...
- Tue Nov 02, 2010 21:13
- Forum: Help
- Topic: [solved] Russian symbols in custom CEGUI::String
- Replies: 16
- Views: 9497
Re: Russian symbols in custom CEGUI::String
Okay, I could see that the error is appears again in ati open gl library: atioglxx.dll. One programmer in our team has driver version 9.7. And on his machine code works well. I'll try this driver and will write here my results. Ati is insulting me. P.S. Other comrade with latest nvidia driver had th...
- Tue Nov 02, 2010 17:33
- Forum: Help
- Topic: [solved] Russian symbols in custom CEGUI::String
- Replies: 16
- Views: 9497
Re: Russian symbols in custom CEGUI::String
As per the documentation (http://cegui.org.uk/docs/current/classCEGUI_1_1String.html#aa22961c9db60456e27d91a9f2a281d20): Note: The characters of std_str are taken to be unencoded data which represent Unicode code points 0x00..0xFF. No translation of the provided data will occur. You could take the ...
- Tue Nov 02, 2010 13:20
- Forum: Help
- Topic: [solved] Russian symbols in custom CEGUI::String
- Replies: 16
- Views: 9497
Re: Russian symbols in custom CEGUI::String
Okay, here is another problem: I'm converting std::wstring into std::string (in utf8) using this code: std::string CUIManager::utf8_encode(const std::wstring &wstr) { int size_needed = WideCharToMultiByte(CP_UTF8, 0, &wstr[0], (int)wstr.size(), NULL, 0, NULL, NULL); std::string strTo( size_n...
- Mon Nov 01, 2010 21:11
- Forum: Help
- Topic: [solved] Russian symbols in custom CEGUI::String
- Replies: 16
- Views: 9497
Re: Russian symbols in custom CEGUI::String
You cannot assume the size of the buffer is rWStr.size() * sizeof(wchar_t) . You need to call the function twice: the first call is used to return the size of the buffer you need to contain the converted string, the second call populates the buffer. See an example here . Thank you! Very interesting...
- Mon Nov 01, 2010 20:44
- Forum: Help
- Topic: [solved] Russian symbols in custom CEGUI::String
- Replies: 16
- Views: 9497
Re: Russian symbols in custom CEGUI::String
I will assume that your editor is set to read and write the source code files in utf8. Then you just cast the string to utf8 and it should work. CEGUI only supports utf8 and utf32, utf16 is not supported! In MSVC2008 project "Characer Set" is "Unicode". Source file is encoded in...
- Mon Nov 01, 2010 18:48
- Forum: Help
- Topic: [solved] Russian symbols in custom CEGUI::String
- Replies: 16
- Views: 9497
Re: Russian symbols in custom CEGUI::String
Show the CEGUI Logger :) 01/11/2010 21:46:58 (Std) +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 01/11/2010 21:46:58 (Std) + Crazy Eddie's GUI System - Event log + 01/11/2010 21:46:58 (Std) + (http://www.cegui.org.uk/) + 01/11/2010 21:46:58 (Std) +-+-+-+-+-+-+-+-+-...
- Mon Nov 01, 2010 18:17
- Forum: Help
- Topic: [solved] Russian symbols in custom CEGUI::String
- Replies: 16
- Views: 9497
Re: Russian symbols in custom CEGUI::String
I will assume that your editor is set to read and write the source code files in utf8. Then you just cast the string to utf8 and it should work. _uiTalkingLog->appendText((CEGUI::utf8*)"Актер:\n"); CEGUI only supports utf8 and utf32, utf16 is not supported! In MSVC2008 project "Chara...
- Mon Nov 01, 2010 17:30
- Forum: Help
- Topic: [solved] Russian symbols in custom CEGUI::String
- Replies: 16
- Views: 9497
[solved] Russian symbols in custom CEGUI::String
Hello again! Here I have another issue: I need to add not ANSI symbols (russian text) at StaticText/Text parameter: _uiTalkingLog->appendText("Актер:\n"); In what format should I represent my string? 1) CEGUI::utf8 (unsigned char) 2) std::wstring? 3) ucs4? Thank you! P.S. Text, defined in ...
- Sun Oct 17, 2010 17:12
- Forum: Help
- Topic: How to manage ListboxItems in listbox via c++ code
- Replies: 4
- Views: 3161
Re: How to manage ListboxItems in listbox via c++ code
Another question: how to highlight a listbox text item under mouse cursor?
Thank you.
Thank you.
- Sun Oct 17, 2010 08:01
- Forum: Help
- Topic: How to manage ListboxItems in listbox via c++ code
- Replies: 4
- Views: 3161
Re: How to manage ListboxItems in listbox via c++ code
Thank you! It works!
- Sat Oct 16, 2010 22:11
- Forum: Help
- Topic: How to manage ListboxItems in listbox via c++ code
- Replies: 4
- Views: 3161
How to manage ListboxItems in listbox via c++ code
Hi all! Today I have a little question: 1) I'm writing code for managing dialogs with NPC and I selected TaharezLook/ListBox for variants of answers in dialog window. 2) I'm try to do something, but my code doesn't work: void CUIManager::_InitDialog() { m_WindowManager->getWindow("Root/NPSQuest...
- Mon Aug 02, 2010 06:11
- Forum: Help
- Topic: Using CEGUI with Leadwersk: program crashes in atioglxx.dll
- Replies: 11
- Views: 3890
Re: Using CEGUI with Leadwersk: program crashes in atioglxx.dll
CrazyEddie wrote:So, what do we think was the issue of crashing in the driver? Surely not the 'looknfeel' / 'looknfeels' difference?
CE
Sure. Issue was in operation system. Code was wrong too. Now it works.
- Sun Aug 01, 2010 17:43
- Forum: Help
- Topic: Using CEGUI with Leadwersk: program crashes in atioglxx.dll
- Replies: 11
- Views: 3890
Re: Using CEGUI with Leadwersk: program crashes in atioglxx.dll
It may be helpfull: After using Leadwerks 2.4, CEGUI 0.7.1, ATi 10.7 drivers and new installation of windows 7 x64 all is fine! P.S. Just change string rp->setResourceGroupDirectory("looknfeels", "Data/GUI/LookNFeel/"); without 's' at the end of string "Data/GUI/LookNFeel/&q...