Search found 80 matches

by Anil8753
Tue Jun 07, 2016 5:28 pm
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 3007

Re: Row selection in wxDataViewCtrl is based on index basis

I missed one important information. I am using wxDataViewCtrl generic implementation on both Windows and OSX.
by Anil8753
Tue Jun 07, 2016 4:57 pm
Forum: C++ Development
Topic: Row selection in wxDataViewCtrl is based on index basis
Replies: 23
Views: 3007

Re: Row selection in wxDataViewCtrl is based on index basis

I did not create a native list control, but I checked windows task manager and Add Remove Programs both of them use SysListView32 window class. They retain list row than row index. I checked with Microsoft outlook also (it is not a SysListView32 class, it is a custom control), but it shows the same ...
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: 3007

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

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

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

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

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

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

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

(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: 539

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

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

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

Re: Use generic implementation of wxDataViewCtrl on OSX

tried wxHAS_GENERIC_DATAVIEWCTRL /include/wx/dataview.h for OSX. Got lots of linking errors