Search found 80 matches

by Anil8753
Tue Mar 22, 2016 5:15 am
Forum: C++ Development
Topic: Use generic implementation of wxDataViewCtrl on OSX
Replies: 5
Views: 430

Use generic implementation of wxDataViewCtrl on OSX

By default wxDataViewCtrl has native implementation under OSX. How can I use generic implementation of wxDataViewCtrl under OSX. I do not want to make any changes in wxWidgets Code. I would prefer a macro or some specific header. I defined wxUSE_GENERICDATAVIEWCTRL macro, It could not help. Also I a...
by Anil8753
Mon Jan 25, 2016 2:16 pm
Forum: C++ Development
Topic: Reorder column, Resize column events
Replies: 5
Views: 531

Re: Reorder column, Resize column events

1. I am not able to catch the wxHeaderCtrl events in wxDataViewCtrl. So has to stick to my hack. :( 2. Tried second one, working :) I got another solution. I handled the wxIdleEvent of wxHeaderCtrl , This also processed after wxEVT_HEADER_END_RESIZE and wxEVT_HEADER_END_REORDER are processed. What I...
by Anil8753
Mon Jan 25, 2016 11:15 am
Forum: C++ Development
Topic: Reorder column, Resize column events
Replies: 5
Views: 531

Re: Reorder column, Resize column events

Thanks :) GetMainWindow() API is there to get associated main window. There is no API available to get the associated wxHeaderCtrl from the wxDataViewCtrl . I used the following trick :( wxWindowList childWinList = m_pDataViewCtrl->GetChildren(); for (const auto& win : childWinList) { wxHeaderCtrl* ...
by Anil8753
Sun Jan 24, 2016 12:07 pm
Forum: C++ Development
Topic: Insert/delete wxDataViewColumn after performing reorder column in wxDataViewCtrl
Replies: 0
Views: 904

Insert/delete wxDataViewColumn after performing reorder column in wxDataViewCtrl

I did columns reordering in wxDataViewCtrl . I inserted a new column using InsertColumn() API. I got the following assert failure: --------------------------- wxWidgets Debug Alert --------------------------- ..\..\src\msw\headerctrl.cpp(442): assert "order >= 0 && order <= GetShownColumnsCount()" f...
by Anil8753
Sun Jan 24, 2016 12:03 pm
Forum: C++ Development
Topic: Reorder column, Resize column events
Replies: 5
Views: 531

Reorder column, Resize column events

I have a wxDataViewCtrl . I am performing the following actions: Reorder column using mouse drag&drop Resize column using mouse drag&drop Here I want to get notify above actions via wx events. My requirement is to record all above actions by the user so that while next launch of application can rest...