Hello Everybody.
I've been met with this situation. I have to write an application with
Russian-language character strings. When I added a menu items with Widget*
Menu::add(const char*, unsigned shortcut, Callback*, void* = 0, int = 0) in
English language, everything was good. I used "&File/E&xit" and fltk::CTRL |
'x' shortcut for it. But later I decided to rewrite strings with Russian
language ("&Файл/Вы&ход" and fltk::CTRL | 'Х'). FLTK lib successfully showed
menu items in my language, but they weren't underscored (there were just &'s
before letters). When I tried to use the L letter behind "....." I've got a
compile-time error, that add(...) function can't use wchar_t* type.
And my second problem is with shortcut. When I used 'X' (in my alphabet
there is a letter looked like Engish 'iks'). If I compile program with 'x'
I've got a warning:
mainwindow.cpp:12: warning: multi-character character constant.
I think that X letter has two bytes size. (because of UTF-8 file encoding).
When I used L'X' combination, everything is ok, but this shortcut doesn't
work.
Can you help me with these problems, because I didn't find anything infos
about correct Unicode programming in FLTK;I'm a new in FLTK. I programmed under Linux (Code::Blocks ide), and my locale is "ru_RU.UTF-8". In future I want to build the same application for Windows. I hope this information will be helpful for a correct answer. Thanks a lot. _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

