Search found 55 matches

by van_user
Mon Apr 27, 2009 6:11 am
Forum: wxWidgets Development (Russian)
Topic: Рендер wxHtmlWindow в wxImage
Replies: 4
Views: 1339

Re: Всё

iigor wrote:Весь HTML что я в этот компонент отправил отрендерить в рисунок.
Если нужно сфотографировать - попробуй по аналогии со screenshot ( взять DC контрола, сохранить в Bitmap и его уже сохранить как нужно).
by van_user
Fri Apr 17, 2009 6:31 am
Forum: C++ Development
Topic: SIGSEGV. How to react on event with sender destruction.
Replies: 3
Views: 565

I don`t see any suitable method to do this.

Code: Select all

	A a;
	A* a_pointer = &a;
	delete a_pointer;
- don`t work.
If you have sources there are some variants. ( named constructors, some other).
by van_user
Thu Apr 16, 2009 7:23 am
Forum: C++ Development
Topic: WxGrid problem with Resizing and Maximizing
Replies: 5
Views: 852

wxWindow::SetAutoLayout
Please note that this only happens for the windows usually used to contain children, namely wxPanel and wxTopLevelWindow (and the classes deriving from them).
(see help for more)
by van_user
Thu Apr 16, 2009 6:58 am
Forum: C++ Development
Topic: SIGSEGV. How to react on event with sender destruction.
Replies: 3
Views: 565

Does Object1 has Destory( ) method?
by van_user
Thu Apr 16, 2009 6:56 am
Forum: C++ Development
Topic: Scrolling Window doesn't scroll
Replies: 6
Views: 1735

I thought DoPrepareDC does that? Hmm... I was hurried yesterday. So today I inspect thread one again and: DoPrepareDc has called with dc ( ClientDC). So you got right output region. But when you copy image from source to the window you should consider offset in source. Maybe I am wrong, but take a ...
by van_user
Wed Apr 15, 2009 2:02 pm
Forum: C++ Development
Topic: Scrolling Window doesn't scroll
Replies: 6
Views: 1735

Sorry, I miss that.
by van_user
Wed Apr 15, 2009 6:50 am
Forum: C++ Development
Topic: Scrolling Window doesn't scroll
Replies: 6
Views: 1735

Re: Scrolling Window doesn't scroll

void ScrolledDrawingWindow::OnScroll(wxScrollWinEvent & event){ Redisplay(); } void ScrolledDrawingWindow::Redisplay(void){ //dc is declared in the header as ClientDC //mdc is declared in the header as a MemoryDC //bitmap and memorydc are fine, they just don't scroll #ifdef __WXMSW__ pthread_mutex_...
by van_user
Tue Apr 14, 2009 5:48 am
Forum: wxWidgets Development (Russian)
Topic: Соит ли использовать wxWidgets 3
Replies: 4
Views: 2031

Re: Соит ли использовать wxWidgets 3

А разве и так не работает? У меня пример minimal нормально работает даже если строки прописаны в кодировке windows-1251 Я так понял что это надо если wxWidgets собрирались в Unicode конфигурации. Хотя это догадки. У меня просто на русские символьные константы ( или может чего другое, не помню) gcc ...
by van_user
Mon Apr 13, 2009 11:48 am
Forum: wxWidgets Development (Russian)
Topic: Соит ли использовать wxWidgets 3
Replies: 4
Views: 2031

Re: Соит ли использовать wxWidgets 3

хочется заюзать wxDataViewCtrl. Не один ты такой :) Кто пользовался подскажите, пожалуйста, стоит ли переползать с 2.8.9 на 3? или ограничится 2.8.10? Собрал 2.9.0(?) ( svn за 13.03.2009) с параметрами по умолчанию ( с поддержкой 2.8 ). Изменения 1 - исходники надо сохранить в utf. 2 - с кириллицей...
by van_user
Mon Mar 30, 2009 7:24 am
Forum: wxWidgets Development (Russian)
Topic: converting to execution character set: Illegal byte sequence
Replies: 13
Views: 4752

Re: converting to execution character set: Illegal byte sequ

И сразу столкнулся с ошибкой, связанной с выводом сообщений на русском языке. wxMessageBox(wxT("Ошибка!")); На такие вот строчки компилятор и ругается. Будет лучше если ты еще выложишь лог компилятора. У меня диалоги с русскими буквами нормально работают без специальных параметров в configure. И ис...
by van_user
Wed Mar 25, 2009 10:24 am
Forum: wxWidgets Development (Russian)
Topic: вместо wxRichTextCtrl отображается пря
Replies: 2
Views: 1240

Re: вместо wxRichTextCtrl отображается п

sergiokey wrote: еще один маленький вопрос: каким образом можно отключить в наследнике wxRichTextCtrl undo,redo и контекстное меню
Перехватывай соответсвующие события ( event) и в обработчике( ах) НЕ указывай

Code: Select all

 event. Skip( ); 
by van_user
Tue Jul 15, 2008 10:18 am
Forum: C++ Development
Topic: zooming a image
Replies: 9
Views: 1886

This is because you copy image from screen (as I see from post). Try to copy from source(when you need to evalute real coordinates) or crop region for cut draw rectangle.
Sorry for my English. I hope you understand idea.
by van_user
Fri Jul 04, 2008 5:46 am
Forum: C++ Development
Topic: Array of BitmapButtons display only first bitmap
Replies: 14
Views: 1611

:shock: . The reason was ID`s. I thought this IDs are used for event handling. Now works fine. Thanks a lot.
by van_user
Fri Jul 04, 2008 12:18 am
Forum: C++ Development
Topic: Array of BitmapButtons display only first bitmap
Replies: 14
Views: 1611

Hi Hello to Rus. Don't use the same ID for all buttons: button_mas[ i] = new wxBitmapButton( Main_panel, FIRST_COLOUR_BUTTON_PRESS, *( bitmap_mas[ i])); This is for debug. In release handling may change (this is not actually problem). The question - what to do with buttons. I can draw rectangles on...
by van_user
Thu Jul 03, 2008 2:40 am
Forum: C++ Development
Topic: Array of BitmapButtons display only first bitmap
Replies: 14
Views: 1611

Finally I successfully compile wx 2.8.7. But my program still doesn`t work correct.
Edit: correct - display different bitmaps for bitmapbuttons.
What to do?