Search found 39 matches

by Forest
Tue Dec 29, 2009 8:57 pm
Forum: C++ Development
Topic: wxTextCtrl custom popup menu items
Replies: 3
Views: 2140

Thank you, tan!
by Forest
Sun Dec 27, 2009 11:16 am
Forum: C++ Development
Topic: wxTextCtrl custom popup menu items
Replies: 3
Views: 2140

wxTextCtrl custom popup menu items

When you right-click on wxTextCtrl menu with Copy, Paste, etc appears.
How can I add custom items to that menu?
by Forest
Fri Nov 13, 2009 8:10 pm
Forum: wxWidgets Development (Russian)
Topic: конвертирование кирилицы
Replies: 7
Views: 3265

Может и не в тему, но вроде как char - это один байт, тогда как Юникод занимает два. Попробуй сложить не в массив char, а в массив wxChar. Хотя возможно, что wxChar - это typedef char :)
by Forest
Wed Nov 11, 2009 9:22 pm
Forum: C++ Development
Topic: wxWindows and codepages
Replies: 3
Views: 776

Try this in your OnInit():

Code: Select all

wxLocale *language = new wxLocale();
language->Init(wxLANGUAGE_FRENCH);
by Forest
Fri Oct 16, 2009 3:38 pm
Forum: C++ Development
Topic: Access between class problem
Replies: 4
Views: 747

"itemNotebook" is protected member. Try to move it to public. Or use something like

Code: Select all

wxNoteBook* GetNotebook(){return itemNotebook;}
by Forest
Fri Oct 16, 2009 3:34 pm
Forum: Compiler / Linking / IDE Related
Topic: How can i open/compile wxwidgets samples?
Replies: 1
Views: 540

In Visual Studio 2005 I open samples\samples.dsw and then press "Yes to All" button.
by Forest
Fri Oct 09, 2009 10:24 am
Forum: C++ Development
Topic: store image in the executable
Replies: 3
Views: 497

I use wxInclude. It can convert many images in various formats to arrays and create header file with them.
You can read http://wiki.wxwidgets.org/Embedding_PNG_Images
by Forest
Mon Sep 28, 2009 9:07 pm
Forum: wxWidgets Development (Russian)
Topic: Печать и кодировка
Replies: 10
Views: 3169

Mojo, есть такое))
by Forest
Fri Sep 25, 2009 12:50 pm
Forum: C++ Development
Topic: Print and encoding
Replies: 2
Views: 441

HTML works well.
Solution is in using Unicode :)
by Forest
Fri Sep 25, 2009 12:49 pm
Forum: wxWidgets Development (Russian)
Topic: Печать и кодировка
Replies: 10
Views: 3169

Решение - использовать Юникод :)
by Forest
Thu Sep 24, 2009 1:54 pm
Forum: wxWidgets Development (Russian)
Topic: Печать и кодировка
Replies: 10
Views: 3169

Code: Select all

text+="<HTML>";
	text+="<HEAD>";
	text+="<meta http-equiv=\"Content-Language\" content=\"ru\">";
	text+="<meta http-equiv=\"Content-Type\" content=\"text/html;charset=windows-1251\">";
	text+="</HEAD>";
	text+="<BODY LANG=\"ru-RU\">";
	text+="<TABLE width=\"100%\" cellspacing=\"0\" border=\"1\">";
by Forest
Thu Sep 24, 2009 12:34 pm
Forum: wxWidgets Development (Russian)
Topic: Печать и кодировка
Replies: 10
Views: 3169

Не работает :(
Попробую собрать Юникод-сборку wx. Надеюсь, что ничего остальное не посыпется.
by Forest
Thu Sep 24, 2009 10:56 am
Forum: wxWidgets Development (Russian)
Topic: Печать и кодировка
Replies: 10
Views: 3169

Мда... криво объяснил. Есть wxGrid, в котором есть какие-то данные. На экране все хорошо отображается. Теперь я делаю такой хтмл-текст: wxString text=""; text+="<HTML><BODY>"; text+="<TABLE width=\"100%\" cellspacing=\"0\" border=\"1\">"; text+="<TR border=\"1\">"; text+="<TH width=\"20%\">"; text+=...
by Forest
Thu Sep 24, 2009 9:35 am
Forum: wxWidgets Development (Russian)
Topic: Печать и кодировка
Replies: 10
Views: 3169

Печать и кодировка

Есть таблица. Пытаюсь её напечатать, используя wxHtmlEasyPrinting. Русские символы печатаются кракозябрами. В самой таблице все верно отображается, включая локализованные названия дней недели. Т.е. локаль настроена верно.
Куда копать?
by Forest
Thu Sep 24, 2009 9:32 am
Forum: C++ Development
Topic: Print and encoding
Replies: 2
Views: 441

Print and encoding

I have grid with string values. This values consists of non-English characters. All displays well, including internationalized day names (Monday etc). So locale is properly set.
I want to print out this grid using wxHtmlEasyPrinting. Non-English characters are printed out wrong.
What should I do?