Search found 132 matches

by Kvaz1r
Mon May 13, 2019 2:53 pm
Forum: Platform Related Issues
Topic: wxADJUST_MINSIZE in wx 3.1.3 (GIT master) error under Windows
Replies: 1
Views: 142

Re: wxADJUST_MINSIZE in wx 3.1.3 (GIT master) error under Windows

I don't know why it build under macOS, but the macros is obsolete. From source code : wxADJUST_MINSIZE doesn't do anything any more but we still define it for compatibility. Notice that it may be also predefined (as 0, hopefully) in the user code in order to use it even in !WXWIN_COMPATIBILITY_2_8 b...
by Kvaz1r
Mon May 13, 2019 2:39 pm
Forum: C++ Development
Topic: WXchoice GetSelectios() string
Replies: 2
Views: 99

Re: WXchoice GetSelectios() string

by Kvaz1r
Wed May 08, 2019 6:00 pm
Forum: C++ Development
Topic: Access violation exception when use own wxDataViewVirtualListModel.
Replies: 2
Views: 126

Re: Access violation exception when use own wxDataViewVirtualListModel.

That's to be expected. If you say the list has 50 items, GetValueByRow() will be called with row values from 0 to 49. And if your vector is too small, you get an exception. The sample is a little confusing, in a real world application you wouldn't have a certain number of "real" items and then the ...
by Kvaz1r
Wed May 08, 2019 3:47 pm
Forum: C++ Development
Topic: Access violation exception when use own wxDataViewVirtualListModel.
Replies: 2
Views: 126

Access violation exception when use own wxDataViewVirtualListModel.

If size of vector not less than NUMBER_OF_ITEMS all works as expected, if I change it to something less - getting access violation. I've created model by analogy to model from dataview sample . MCVE: #include <wx/wx.h> #include <wx/dialog.h> #include <wx/dataview.h> #include <utility> typedef std::p...
by Kvaz1r
Mon May 06, 2019 2:11 pm
Forum: C++ Development
Topic: Setting the cell value with wxGridChoiceCellEditor
Replies: 3
Views: 157

Re: Setting the cell value with wxGridChoiceCellEditor

Hi. You should capture this :

Code: Select all

 CallAfter( [this](){ m_grid->SetCellValue( 1, m_column, "" )});
If it won't help I think better provide minimal example for testing.
by Kvaz1r
Mon May 06, 2019 7:38 am
Forum: C++ Development
Topic: Drag and drop images
Replies: 4
Views: 278

Re: Drag and drop images

Yes, here the overview in the documentation Drag and Drop Overview and a tutorial Drag and Drop in wxWidgets
by Kvaz1r
Mon May 06, 2019 6:43 am
Forum: C++ Development
Topic: Setting the cell value with wxGridChoiceCellEditor
Replies: 3
Views: 157

Re: Setting the cell value with wxGridChoiceCellEditor

ONEEYEMAN wrote:
Mon May 06, 2019 4:38 am
I tried to use CallAfter, like this:
What if passed to CallAfter lambda expression and make corresponding call there?
by Kvaz1r
Wed May 01, 2019 9:30 am
Forum: C++ Development
Topic: Display unicode on button?
Replies: 11
Views: 347

Re: Display unicode on button?

I see. Suppose the file I was loading was saved using ANSI Windows 1252: Can I specify the second argument in: wxString::wxString(const char*, const wxMBConv&) to handle that CP-1252 encoding to build wxString? It seems wxMBConv accepts only unicode (UTF-8, UTF-16, UTF-32) parameters. Yes. But ther...
by Kvaz1r
Wed May 01, 2019 8:38 am
Forum: C++ Development
Topic: Display unicode on button?
Replies: 11
Views: 347

Re: Display unicode on button?

purplex88 wrote:
Wed May 01, 2019 8:27 am
Any idea if I need to change locale? How will that be useful?
I don't know I'd never used this way. Maybe it will work if your default locale non-cyrillic, but to be honest i don't know much about locales. I also use VisualStudio and all work out of the box.
by Kvaz1r
Wed May 01, 2019 8:15 am
Forum: C++ Development
Topic: Display unicode on button?
Replies: 11
Views: 347

Re: Display unicode on button?

I am getting this result when I try to use unicode: If you have Unicode build of wxWidgets it shouldn't be a problem at all. But maybe the reason in "wrong" encoding your source file. Edit: which IDE do you use? If CodeBlocks + wxSmith here separate topic - Code::Blocks + wxSmith и русские буквы
by Kvaz1r
Tue Apr 30, 2019 9:14 pm
Forum: C++ Development
Topic: closing wxProgressDialog with a wxThread
Replies: 51
Views: 1362

Re: closing wxProgressDialog with a wxThread

thank you! std::future is new to me, have to look into that more. Yeah std::future is pretty simple comparing to wxThread :D. But keep in mind that STL containers haven't thread safe write operations so code from link above is wrong in part of collecting data. I have data files typically 450kB big ...
by Kvaz1r
Tue Apr 30, 2019 7:23 pm
Forum: C++ Development
Topic: closing wxProgressDialog with a wxThread
Replies: 51
Views: 1362

Re: closing wxProgressDialog with a wxThread

Btw, if your threads do only monotonous work you can use parallel algorithm for range. It was add into C++17 but it also provided in some libraries (wxWidgets doesn't have this features, though). If you on Windows there is PPL library. But it also could be implement with C++11 like here - https://st...
by Kvaz1r
Tue Apr 30, 2019 2:19 pm
Forum: C++ Development
Topic: Issue in Capturing Screenshot using wxGraphicsContext
Replies: 17
Views: 518

Re: Issue in Capturing Screenshot using wxGraphicsContext

saranya wrote:
Tue Apr 30, 2019 1:12 pm
I have Uploaded the Sample code here
So you just want to save chart from wxPlotCtrl? In this case you can use code from topic - Exporting (saving) graphs from wxPlotCtrl
by Kvaz1r
Tue Apr 30, 2019 6:20 am
Forum: C++ Development
Topic: Issue in Capturing Screenshot using wxGraphicsContext
Replies: 17
Views: 518

Re: Issue in Capturing Screenshot using wxGraphicsContext

I tried to Upload sample Solution(Zip file) containing 30MB which illustrates the Issue. I am unable to attach the file .It is showing an error message (HTTP Error)
You can load it on Github or something. But why it contains 30MB?
by Kvaz1r
Mon Apr 29, 2019 11:48 am
Forum: C++ Development
Topic: unhandled unknown exception in wxThreadInternal::DoThreadStart
Replies: 24
Views: 693

Re: unhandled unknown exception in wxThreadInternal::DoThreadStart

Yes, this could be a solution like DoubleMax also suggested. I hesitate because that would mean that one thread pool "open files" would use another pool "fill buffer", the buffer being filled with the content of the files. That sounds dangerous, but maybe it is necessary. You can always use only on...