Search found 89 matches

by Anil8753
Wed Jul 19, 2017 3:37 am
Forum: C++ Development
Topic: WxDataViewListCtrl not sorting by column
Replies: 4
Views: 1819

Re: WxDataViewListCtrl not sorting by column

After adding your items in wxDataViewCtrl call the following:

Code: Select all

wxDataViewCtrl::GetModel()->Resort();
by Anil8753
Wed Jul 12, 2017 10:06 am
Forum: Platform Related Issues
Topic: SetLabel() on wxBitmapButton does not work as expected
Replies: 2
Views: 877

Re: SetLabel() on wxBitmapButton does not work as expected

try it const wxBitmap bmpNormal = ...; const wxBitmap bmpSelected = ...; wxButton* pBtn = new wxButton(this, wxID_ANY, wxEmptyString, wxDefaultPosition, bmpNormal.GetSize(), wxTRANSPARENT_WINDOW | wxBORDER_NONE); pBtn->SetLabelText("YOUR LABEL"); pBtn->SetBitmap(bmpNormal); pBtn->SetBitmapHover(bmpS...
by Anil8753
Tue Jul 11, 2017 7:06 am
Forum: Platform Related Issues
Topic: wxWidgets 3.0 on Mac 10.13 crashing
Replies: 4
Views: 820

Re: wxWidgets 3.0 on Mac 10.13 crashing

I build wxWidgets myself output as a dynamic library using XCode7.2. On close of any wxDialog, it is either hangs or crashes
by Anil8753
Mon Jul 10, 2017 11:07 am
Forum: Platform Related Issues
Topic: wxWidgets 3.0 on Mac 10.13 crashing
Replies: 4
Views: 820

wxWidgets 3.0 on Mac 10.13 crashing

I am trying my application on macOS High Sierra (version 10.13 Beta 17A291m). Application crashes when I launch a wxDialog and close. On close it crash in wxGUIEventLoop::OSXDoRun() function in evtloop.mm (line# 301). I have no clue whether it is wxWidgets issue or Mac10.13 issue. The application wo...
by Anil8753
Tue Jul 04, 2017 11:58 am
Forum: C++ Development
Topic: Which control for huge changing list ?
Replies: 10
Views: 1614

Re: Which control for huge changing list ?

wxDataViewCtrl, I found it is a nice control for this kind of requirement. Additional it provides the inline editing as well, of course, you do not need it. Provide the flexibility to customise the look and feel by custom renderers. It's nice indeed but only if he is going to limit data and page th...
by Anil8753
Tue Jul 04, 2017 8:57 am
Forum: C++ Development
Topic: Widget like Windows Explorer in Icon Mode
Replies: 9
Views: 1558

Re: Widget like Windows Explorer in Icon Mode

probably have a look on https://github.com/Anil8753/wxThumbnailCtrl

wxListCtrl can also be used if you have lesser number of items. If you have items in thousands, I would say it is worth to check wxThumbnailCtrl once.
by Anil8753
Tue Jul 04, 2017 7:29 am
Forum: C++ Development
Topic: Which control for huge changing list ?
Replies: 10
Views: 1614

Re: Which control for huge changing list ?

wxDataViewCtrl, I found it is a nice control for this kind of requirement. Additional it provides the inline editing as well, of course, you do not need it.
Provide the flexibility to customise the look and feel by custom renderers.
by Anil8753
Tue Jul 04, 2017 5:17 am
Forum: C++ Development
Topic: Setting the background color in wxChoice
Replies: 5
Views: 1371

Re: Setting the background color in wxChoice

I feel there is no direct API to do it. But you can use the following trick implement the desire behaviour. #include <wx/artprov.h> m_pSizer = new wxBoxSizer(wxHORIZONTAL); wxChoice* pChoice = new wxChoice(this, wxID_ANY); pChoice->AppendString("One"); pChoice->AppendString("Two"); pChoice->AppendSt...
by Anil8753
Mon Jul 03, 2017 11:50 am
Forum: Component Writing
Topic: Efficient way of display thumbnails
Replies: 16
Views: 7032

Re: Efficient way of display thumbnails

Yeah, I achieved it. Now I can display more 10K thumbnails without any performance issue. using it, I implemented exactly Windows Explorer like control. It works like charm.

You may find the source @github
https://github.com/Anil8753/wxThumbnailCtrl
by Anil8753
Mon Jul 03, 2017 10:31 am
Forum: C++ Development
Topic: How to sort columns in a wxDataViewListCtrl
Replies: 2
Views: 787

Re: How to sort columns in a wxDataViewListCtrl

wxEVT_DATAVIEW_COLUMN_SORTED event gets fired after you click on a column for sorting and sorting is done. use the wxEVT_DATAVIEW_COLUMN_HEADER_CLICK event if you want to sort initiating event see the datavgen.cpp void OnClick(wxHeaderCtrlEvent& event) { FinishEditing(); const unsigned idx = event....
by Anil8753
Mon Jul 03, 2017 10:27 am
Forum: C++ Development
Topic: wxBitmapButton Transparency
Replies: 1
Views: 728

Re: wxBitmapButton Transparency

const wxBitmap bmpNormal = ... ; // transparent png const wxBitmap bmpSelected = ... ; // transparent png wxButton* pBtn = new wxButton(this, wxID_ANY, wxEmptyString, wxDefaultPosition, bmpNormal.GetSize(), wxTRANSPARENT_WINDOW | wxBORDER_NONE); pBtn->SetBitmap(bmpNormal); pBtn->SetBitmapHover(bmpS...
by Anil8753
Fri Jun 30, 2017 3:41 am
Forum: C++ Development
Topic: Make generic wxDataViewCtrl rows non-selectable
Replies: 4
Views: 1016

Re: Make generic wxDataViewCtrl rows non-selectable

I feel in native OSX version it is possible to make a row non-selectable. I am using the generic version on both Win and Mac.
by Anil8753
Thu Jun 29, 2017 12:19 pm
Forum: C++ Development
Topic: Make generic wxDataViewCtrl rows non-selectable
Replies: 4
Views: 1016

Re: Make generic wxDataViewCtrl rows non-selectable

Yeah, you are right. I tried the approach given by you. It is working but at the same time, it is opening another set of issues in expand/collapse button functionality. Now, I am capturing the selection change event and if selected item is not of my interest, I am de-selecting it back. :? I know it ...
by Anil8753
Thu Jun 29, 2017 9:39 am
Forum: C++ Development
Topic: Make generic wxDataViewCtrl rows non-selectable
Replies: 4
Views: 1016

Make generic wxDataViewCtrl rows non-selectable

Is there any way make few wxDataViewItem (row) selectable and few non-selectable. I am using generic wxDataViewCtrl.

I found wxEVT_DATAVIEW_SELECTION_CHANGED triggers after selection change is done. There is no EVT_DATAVIEW_SELECTION_CHANGING event, there I can stop this event.
by Anil8753
Thu Mar 30, 2017 7:27 am
Forum: Component Writing
Topic: Efficient way of display thumbnails
Replies: 16
Views: 7032

Re: Efficient way of display thumbnails

wxWrapSizer can be used. Only thing is the performance when I want to treat as wxDataViewCtrl (lots of add/delete/update) in the items.
Did you guys found some solution? My requirement is to display 10K image items.