Search found 20 matches

by refaelsh
Thu Feb 07, 2019 7:45 am
Forum: C++ Development
Topic: wxDataViewListCtrl and wxVariant
Replies: 17
Views: 1004

Re: wxDataViewListCtrl and wxVariant

Based on the callstack, i would suspect an error in MyCustomRenderer. I guess it's called before the control is filled with data and your code doesn't handle the situation properly. But it's only a guess. I don't know why it happened after the switch to 3.1.2. Your answer got me thinking. Since I d...
by refaelsh
Wed Feb 06, 2019 8:37 pm
Forum: C++ Development
Topic: wxDataViewListCtrl and wxVariant
Replies: 17
Views: 1004

Re: wxDataViewListCtrl and wxVariant

ONEEYEMAN wrote:Hi,
So this "Raw pointer to an instance of MyClass" is a good pointer and not NULL?

Thank you.
Correct.
by refaelsh
Wed Feb 06, 2019 8:05 pm
Forum: C++ Development
Topic: wxDataViewListCtrl and wxVariant
Replies: 17
Views: 1004

Re: wxDataViewListCtrl and wxVariant

Hi, Where the data is coming from? External device? Internet? File? Its kinda hard to explain, but a good approximation would be "Internal" and/or "File". I execute some shell command and parse the output to get the data. Right after you populated the data, is it good? Yes, it does. I've verified i...
by refaelsh
Wed Feb 06, 2019 7:05 pm
Forum: C++ Development
Topic: wxDataViewListCtrl and wxVariant
Replies: 17
Views: 1004

Re: wxDataViewListCtrl and wxVariant

ONEEYEMAN wrote:Hi,
Looking at the SO question: are you populating the data in a thread? Maybe its just a timing issue?

Thank you.
No, I am not populating it in a thread. I am populating it in the wxApp::OnInit method.
by refaelsh
Tue Feb 05, 2019 8:23 pm
Forum: C++ Development
Topic: wxDataViewListCtrl and wxVariant
Replies: 17
Views: 1004

wxDataViewListCtrl and wxVariant

I have a simple setup, a wxDataViewListCtrl, the first column uses wxDataViewCustomRenderer and the second column is just text. class MyCustomRenderer : public wxDataViewCustomRenderer I add a line to the wxDataViewListCtrl like this: wxVector<wxVariant> item; item.push_back(wxVariant(/*a raw pointe...