Search found 93 matches

by Anil8753
Tue Jun 07, 2016 11:32 am
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 5750

Re: Row selection in wxDataViewCtrl is based on index basis

I did not have trac account. I created account also, but email verification is pending as I did not get verification token on my email id.
If possible you may log this issue.
by Anil8753
Tue Jun 07, 2016 6:58 am
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 5750

Re: Row selection in wxDataViewCtrl is based on index basis

My apologies, I could not make my question clear. wxDataViewListCtrl is variant of wxDataViewCtrl . wxDataViewListCtrl having the same issue. Issue is, control is not remembering the selected item (that is wxDataViewItem ), rather it remembers it's selected index. While sorting item index may change.
by Anil8753
Mon Jun 06, 2016 10:33 am
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 5750

Row selection in wxDataViewCtrl is based on index basis

I have a wxDataViewCtrl. For simplicity suppose there is only one column. data is listed like: ----------------- Header ----------------- text1 text2 text3 text4 Suppose I selected text1 which is first row. Now if click on header to sort data in descending order. Data is sorted but new selection is ...
by Anil8753
Thu Jun 02, 2016 4:17 pm
Forum: C++ Development
Topic: Get Files data in OnEnter and OnDragOver
Replies: 9
Views: 1649

Re: Get Files data in OnEnter and OnDragOver

Yes, DnD sample does not override OnEnter, OnDragOver.
by Anil8753
Thu Jun 02, 2016 3:27 pm
Forum: C++ Development
Topic: Get Files data in OnEnter and OnDragOver
Replies: 9
Views: 1649

Re: Get Files data in OnEnter and OnDragOver

I tried it on Windows only. wxFileDataObject* pData = dynamic_cast<wxFileDataObject*>(GetDataObject()); As I understand source must set the files first using SetDataObject(). I am dragging and dropping from filesystem (desktop). I do not know, who will set the files into object, because source is no...
by Anil8753
Thu Jun 02, 2016 2:25 pm
Forum: C++ Development
Topic: Get Files data in OnEnter and OnDragOver
Replies: 9
Views: 1649

Re: Get Files data in OnEnter and OnDragOver

I am on both Mac and Windows and I am using wx-3.0

I checked the given DnD sample, did not find what I am looking for.
by Anil8753
Thu Jun 02, 2016 12:16 pm
Forum: C++ Development
Topic: Get Files data in OnEnter and OnDragOver
Replies: 9
Views: 1649

Get Files data in OnEnter and OnDragOver

I have wxFileDropTarget and I overridden OnEnter, OnDragOver and OnDropFiles virtual functions. OnDropFiles directly gives me wxArrayString, I can get all the files dropped. But I am not able to get files data in OnEnter and OnDragOver . My requirement is to put a condition so that I can stop drop i...
by Anil8753
Fri May 06, 2016 4:37 pm
Forum: C++ Development
Topic: (Push + Dropdown) button wxWidgets
Replies: 1
Views: 587

(Push + Dropdown) button wxWidgets

I need a control that have a push button and a dropdown button. Similar control is available in wxRibbonButtonBar , I am not able to use it in simple wxPanel. http://stackoverflow.com/questions/37076881/push-dropdown-button-wxwidgets I tried to put wxButton and wxBitmapButton in a horizontal sizer, ...
by Anil8753
Tue May 03, 2016 2:05 pm
Forum: Platform Related Issues
Topic: void wxAnyButton::SetBitmapMargins (const wxSize& sz ) on Mac
Replies: 1
Views: 793

void wxAnyButton::SetBitmapMargins (const wxSize& sz ) on Mac

What is the Mac alternative for

Code: Select all

void wxAnyButton::SetBitmapMargins(const wxSize & sz)	
As documentation says it is supported on WIndows only, but I need it on both the OS
by Anil8753
Wed Mar 23, 2016 6:22 am
Forum: C++ Development
Topic: Use generic implementation of wxDataViewCtrl on OSX
Replies: 5
Views: 1248

Re: Use generic implementation of wxDataViewCtrl on OSX

Sorry Fixed!!!


We need to build wxWidgets with both
wxHAS_GENERIC_DATAVIEWCTRL
wxUSE_GENERICDATAVIEWCTRL


only wxHAS_GENERIC_DATAVIEWCTRL will not work
by Anil8753
Wed Mar 23, 2016 4:19 am
Forum: C++ Development
Topic: Use generic implementation of wxDataViewCtrl on OSX
Replies: 5
Views: 1248

Re: Use generic implementation of wxDataViewCtrl on OSX

Sorry not the linking error, they are compilation errors: ./src/osx/dataview_osx.cpp:101:38: error: no member named 'GetDataViewPeer' in 'wxDataViewCtrl' noFailureFlag = m_DataViewCtrlPtr->GetDataViewPeer()->Add(parent,item); ~~~~~~~~~~~~~~~~~ ^ ./src/osx/dataview_osx.cpp:112:38: error: no member na...
by Anil8753
Tue Mar 22, 2016 4:34 pm
Forum: C++ Development
Topic: Use generic implementation of wxDataViewCtrl on OSX
Replies: 5
Views: 1248

Re: Use generic implementation of wxDataViewCtrl on OSX

tried wxHAS_GENERIC_DATAVIEWCTRL /include/wx/dataview.h for OSX. Got lots of linking errors
by Anil8753
Tue Mar 22, 2016 5:15 am
Forum: C++ Development
Topic: Use generic implementation of wxDataViewCtrl on OSX
Replies: 5
Views: 1248

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: 1390

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...