Search found 26 matches

by skozlov
Fri Mar 12, 2010 8:43 am
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 1.9.8 released
Replies: 10
Views: 3451

Well I use wxSQLite3Table in the wxGridTableBase as data source. I checked wxSQLite3 API and this is the only usefull class for this. For example wxSQLite3ResultSet do not provide number of rows, can move only forward ( NextRow() ). With wxSQLite3Table we can move at any row using SetRow(). That is...
by skozlov
Fri Mar 12, 2010 4:20 am
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 1.9.8 released
Replies: 10
Views: 3451

I'd like to remark that using method GetTable is usually not the recommended way to query the database as underlying SQLite loads the complete resultset into memory and converts every data item into string representation. Well I use wxSQLite3Table in the wxGridTableBase as data source. I checked wx...
by skozlov
Thu Mar 11, 2010 5:56 am
Forum: Announcements and Discoveries
Topic: ANN: wxSQLite3 1.9.8 released
Replies: 10
Views: 3451

Hi. Maybe you know where is problem... Few days ago I started using wxSQLite 1.9.8. But something strange happens while using wxSQLite3Table. Here is the "stack dump": 1) Create DB in the memory: m_db.reset( new wxSQLite3Database() ); m_db->Open(":memory:"); 2) Create table m_db->ExecuteUpdate( "CRE...
by skozlov
Sat Feb 27, 2010 9:19 am
Forum: C++ Development
Topic: wxDataViewRenderer and model items
Replies: 2
Views: 623

Hi, If you store your data in wxVariantData objects, then you can save that value when wxDataViewRenderer::SetValue is called. Then you can retrieve it from the your renderer object during the wxDataViewRenderer::Render routine. Thanks, Jim. Yes, this helps. I wrote about almost the same way void S...
by skozlov
Fri Feb 26, 2010 8:18 am
Forum: C++ Development
Topic: wxDataViewRenderer and model items
Replies: 2
Views: 623

wxDataViewRenderer and model items

Hi. My question is probably for wx team. As I understand current wxDataView architecture do not allow to reach model's item by wxDataViewRenderer. And wxDataViewRenderer can use only item value (which is returned by wxDataViewModel::GetValue() ) for rendering. And if model item contains some extra d...
by skozlov
Sat Jan 23, 2010 12:13 pm
Forum: C++ Development
Topic: Autocomplete and wxLogTrace
Replies: 0
Views: 395

Autocomplete and wxLogTrace

Faced with one problem. I have a simple dialog with wxTextCtrl. For this wxTextCtrl i set auto complete strings array. And on dialog closing my application crashes. I found the problem. wxTextEntry uses wxIEnumString for autocmplete stuff (src\msw\textentry.cpp) and wxIEnumString::Release() uses wxL...
by skozlov
Mon Nov 23, 2009 6:05 am
Forum: C++ Development
Topic: WX as a plug in for Non-WX program
Replies: 11
Views: 2638

I found the problem with AUI. AUI panel asking to process idle events while you moving it. Chunk of the code from src\aui\floatpane.cpp: void wxAuiFloatingFrame::OnIdle(wxIdleEvent& event) { if (m_moving) { if (!isMouseDown()) { m_moving = false; OnMoveFinished(); } else { event.RequestMore(); } } }...
by skozlov
Thu Nov 19, 2009 3:38 am
Forum: C++ Development
Topic: WX as a plug in for Non-WX program
Replies: 11
Views: 2638

Does wxAUI work now in your application ? Well, it works, but it have some problems when you try to move/drag aui panel. Everything (or almost everything) freezes until you release mouse button... And i do not know what to do. Also how did you initialize wxWidgets so it works in a window applicatio...
by skozlov
Wed Nov 18, 2009 3:55 pm
Forum: C++ Development
Topic: WX as a plug in for Non-WX program
Replies: 11
Views: 2638

My app is an extension for a host program. So it works from a window application... I think the main difference between your solution and our is that we use hooks for process messages and pass them to the wx event loop and you use just loop with PeekMessage(). So for gui application you have to use ...
by skozlov
Wed Nov 18, 2009 6:31 am
Forum: C++ Development
Topic: [Solved]wxAUI manual initialization when used in a DLL ?
Replies: 3
Views: 626

Hi.
I have the same problem, I think...
Look here: http://forums.wxwidgets.org/viewtopic.php?t=25414

Maybe we can solve this problem together?
by skozlov
Mon Sep 21, 2009 8:22 am
Forum: C++ Development
Topic: WX as a plug in for Non-WX program
Replies: 11
Views: 2638

Hey i noticed another problem. I'm using AUI library. And if you try to drag floating panel then nothing happens until you release mouse button.. How to process drag/move events??
by skozlov
Tue Sep 15, 2009 6:21 am
Forum: C++ Development
Topic: WX as a plug in for Non-WX program
Replies: 11
Views: 2638

Hello. I'm developing wx-plugin in non wx application too. And thx to dsmtoday . Your code is works. But some things do not work properly. For example wxProgressDialog wants event loop (check wxProgressDialog::Update()) for process gui events. So I created gui event loop for this situation in wxApp:...
by skozlov
Wed Jul 15, 2009 7:24 am
Forum: wxWidgets Development (Russian)
Topic: Сортировка для wxDataViewVirtualListModel
Replies: 1
Views: 1153

Пока сделал так: Главная проблема, узнать столбец и направление сортировки, поэтому модель должна знать свой view. Для этого добавляем в модель: class VirtualModel: public wxDataViewVirtualListModel { ... wxDataViewCtrl *m_parentView; ... }; ... void VirtualModel::setParentView(wxDataViewCtrl *view)...
by skozlov
Wed Jul 15, 2009 5:44 am
Forum: wxWidgets Development (Russian)
Topic: Сортировка для wxDataViewVirtualListModel
Replies: 1
Views: 1153

Сортировка для wxDataViewVirtualListModel

Версия wxWidgets-trunk. Разбираюсь с сортировкой. Как я понял, для сортировки используется wxDataViewModel::Compare(). Этот метод вызывается после клика по заголовку столбца, если тот имеет флаг wxDATAVIEW_COL_SORTABLE. Но для виртуальной модели этого не происходит, те Compare() не вызывается. Порыл...
by skozlov
Thu Jul 02, 2009 5:57 am
Forum: wxWidgets Development (Russian)
Topic: Memory Leak при выгрузке dll
Replies: 16
Views: 5617

Ок. Спасибо.

Поищу, буду разбираться..