Search found 7 matches

by xterro
Sat Jul 20, 2013 11:53 am
Forum: wxWidgets Development (Russian)
Topic: Custom ListBox не вызывается метод OnPaint
Replies: 1
Views: 5477

Re: Custom ListBox не вызывается метод OnPaint

Тему можно закрывать, вопрос решён. Если кому такой список нужен, забираем в этой ветке: http://forums.wxwidgets.org/viewtopic.p ... 88#p153688
by xterro
Sat Jul 20, 2013 11:49 am
Forum: Component Writing
Topic: Custom wxListBox, OnPaint doesn't call
Replies: 6
Views: 6974

Re: Custom wxListBox, OnPaint doesn't call

It works :) list.png #include "wx/wx.h" #include <wx/vlbox.h> #include <iostream> #include <vector> using namespace std; const int ID_LISTBOX = 1; struct ColorCheckListItem { public: ColorCheckListItem(wxString text, wxColor color, bool checked) : Text(text), Color(color), Checked(checked) {}; int T...
by xterro
Sat Jul 20, 2013 6:35 am
Forum: Component Writing
Topic: Custom wxListBox, OnPaint doesn't call
Replies: 6
Views: 6974

Re: Custom wxListBox, OnPaint doesn't call

So simple, thanks again, now it's ok :)
by xterro
Sat Jul 20, 2013 4:45 am
Forum: Component Writing
Topic: Custom wxListBox, OnPaint doesn't call
Replies: 6
Views: 6974

Re: Custom wxListBox, OnPaint doesn't call

One more question, does somebody have an example of using wxVListBox? I have added some code, but there is nothing happening :? #include "wx/wx.h" #include <wx/vlbox.h> #include <iostream> const int ID_LISTBOX = 1; class wxColorCheckListBox : public wxVListBox { public: wxColorCheckListBox(wxWindow ...
by xterro
Fri Jul 19, 2013 5:43 pm
Forum: Component Writing
Topic: Custom wxListBox, OnPaint doesn't call
Replies: 6
Views: 6974

Re: Custom wxListBox, OnPaint doesn't call

Thank you, I'll try to use it :)
by xterro
Fri Jul 19, 2013 2:54 pm
Forum: Component Writing
Topic: Custom wxListBox, OnPaint doesn't call
Replies: 6
Views: 6974

Custom wxListBox, OnPaint doesn't call

Hi, I need custom wxListBox(or may be wxCheckListBox), something like this: Без имени.png I wrote some code, but OnPaint method of "wxColorCheckListBox" doesn't call. (OnSize and OnMouseDown methods is ok). What could be the problem? wxWidgets version 2.8.12 #include "wx/wx.h" //#include "wx/sizer.h...
by xterro
Fri Jul 19, 2013 2:22 pm
Forum: wxWidgets Development (Russian)
Topic: Custom ListBox не вызывается метод OnPaint
Replies: 1
Views: 5477

Custom ListBox не вызывается метод OnPaint

Доброго времени суток, пытаюсь сделать свой собственный ListBox, наследую его от wxListBox, подключил событие EVT_PAINT с обработчиком, но почему-то метод OnPaint моего виджета не вызывается. Обработчики OnSize или OnItemSelected вызываются без проблем. Хочу сделать Что-то типа wxCheckListBox, тольк...