Search found 34 matches

by Kvaz1r
Mon Mar 18, 2019 2:52 pm
Forum: wxCode
Topic: draw a specific area in the wxChartPanel
Replies: 1
Views: 6

Re: draw a specific area in the wxChartPanel

Such type of chart usually named as area chart, check maybe library, which you use has support of this type.
If no - you could also draw area from min curve to line y = 0 (horizontal axis) with color equal background color of chart.
by Kvaz1r
Thu Mar 14, 2019 5:12 pm
Forum: C++ Development
Topic: C++ function ptr with class
Replies: 11
Views: 152

Re: C++ function ptr with class

Any idea why the dispatch1() coding "style" that uses implicit "ControlFrame::" is not allowed? Is this just another arbitrary choice made by the C++ designers? Not an expert, but here some answers: Regarding their syntax, there are two different types of function pointers: On the one hand there ar...
by Kvaz1r
Tue Feb 26, 2019 4:59 pm
Forum: C++ Development
Topic: wxRegEx stack overflow
Replies: 7
Views: 60

Re: wxRegEx stack overflow

Oops, I forgot to add '!' in check when write an example above :D So it must be : if (!reQuickInput.IsValid()) { wxMessageBox("Regex is not valid!"); } else { wxString str = wxT("715"); bool isComplex = reQuickInput.Matches(str); } instead. In any case when have deal with regex better check them on ...
by Kvaz1r
Tue Feb 26, 2019 4:51 pm
Forum: C++ Development
Topic: wxRegEx stack overflow
Replies: 7
Views: 60

Re: wxRegEx stack overflow

mael15 wrote:
Tue Feb 26, 2019 4:35 pm
I want the plus and the minus sign included.
See. Interesting. But if you just want to add those symbols just add them to your symbol class like any other symbols.
What about this one?

Code: Select all

"^(100|[0-9]{1,2})?([IiAaOoPpXxSsBbDdNnRrTtVvWwYyZzUuQqJjFf+-]?)([0-9]*)$"
by Kvaz1r
Tue Feb 26, 2019 4:24 pm
Forum: C++ Development
Topic: wxRegEx stack overflow
Replies: 7
Views: 60

Re: wxRegEx stack overflow

I'm not an expert in regexp but your expression isn't valid. Check via IsValid/0 before using: wxRegEx reQuickInput = wxT("^(100|[0-9]{1,2})?([IiAaOoPpXxSsBbDdNnRrTtVvWwYyZzUuQqJjFf[.-.][.+.]]?)([0-9]*)$"); if (reQuickInput.IsValid()) { wxMessageBox("Regex is not valid!") } else { wxString str = wxT...
by Kvaz1r
Fri Feb 15, 2019 1:45 pm
Forum: C++ Development
Topic: wxXmlDocument and encoding
Replies: 4
Views: 103

Re: wxXmlDocument and encoding

Can you provide some code for better understanding of question or, even better, for reproducing the behaviour?
by Kvaz1r
Wed Jan 30, 2019 5:13 pm
Forum: Platform Related Issues
Topic: Widgets look flat in wxFormbuilder, but not when compiled in IDE
Replies: 11
Views: 367

Re: Widgets look flat in wxFormbuilder, but not when compiled in IDE

Can you provide MCVE for reproducing behaviour?
by Kvaz1r
Tue Jan 29, 2019 7:56 pm
Forum: C++ Development
Topic: wxRadioBox without default selection
Replies: 3
Views: 80

Re: wxRadioBox without default selection

Hi.
Not sure, but maybe group of wxRadioButton is that what you are looking for.

From the documentation:
wxRB_GROUP:
Marks the beginning of a new group of radio buttons.
by Kvaz1r
Tue Jan 29, 2019 12:17 pm
Forum: C++ Development
Topic: How to prevent a wxTextCtrl from loosing focus?
Replies: 12
Views: 182

Re: How to prevent a wxTextCtrl from loosing focus?

wxWidgets docs for wxFocusEvent has this Also note that wxEVT_KILL_FOCUS handler must not call wxWindow::SetFocus() as this, again, is not supported by all native controls. If you need to do this, consider using the Delayed Action Mechanism described in wxIdleEvent documentation. I believe CallAfte...
by Kvaz1r
Tue Jan 29, 2019 12:01 pm
Forum: C++ Development
Topic: How to prevent a wxTextCtrl from loosing focus?
Replies: 12
Views: 182

Re: How to prevent a wxTextCtrl from loosing focus?

Anyway, have you tried to handle wxEVT_KILL_FOCUS and when needed, from this handler (making sure to call wxEvent::Skip()), use CallAfter() (this is needed) where you return the focus to the control using SetFocus(). Why there is need to use CallAfter? Code below works for me: #include <wx/wx.h> cl...
by Kvaz1r
Tue Jan 29, 2019 9:10 am
Forum: Database Related
Topic: wxsqlite3 in eigenes Projekt einfügen
Replies: 14
Views: 367

Re: wxsqlite3 in eigenes Projekt einfügen

Did remember now, that I did manage to compile the samples, but for that I had to copy the wxsqlite.h files to the include/wx of the wxwidgets folder. Why do you need move or copy the files anywhere? Build sample and if it compiles and runs correctly look as included library files and do same in yo...
by Kvaz1r
Thu Jan 24, 2019 9:41 pm
Forum: wxWidgets Development (Russian)
Topic: DOS string to wxString
Replies: 2
Views: 186

Re: DOS string to wxString

DOS-кодировка это какая? cp866? Я бы делал так: #include <wx/wx.h> #include <wx/file.h> class MyFrame : public wxFrame { public: MyFrame() : wxFrame(NULL, wxID_ANY, "Test", wxDefaultPosition, wxSize(600, 400)) { wxBoxSizer* Sizer = new wxBoxSizer( wxVERTICAL ); m_BTest = new wxButton( this, wxID_ANY...
by Kvaz1r
Wed Jan 23, 2019 5:16 pm
Forum: Compiler / Linking / IDE Related
Topic: wxFormBuilder and special charsets
Replies: 9
Views: 187

Re: wxFormBuilder and special charsets

If I write "Modalità di pagamento", in the GUIFrame.cpp I will have "Modalità di pagamento" but when I run my software, the software will display "Modalità di pagamento" (à instead of à). ... Can you verify by creating a software with the label "Modalità di pagamento"? Never heard about such proble...
by Kvaz1r
Wed Jan 23, 2019 3:32 pm
Forum: Compiler / Linking / IDE Related
Topic: wxFormBuilder and special charsets
Replies: 9
Views: 187

Re: wxFormBuilder and special charsets

If I write "Modalità di pagamento" as label in wxFormBuilder, the software will display the label erroneously. Which OS and version of wxFormBuilder do you use? I can't reproduce problem on Win7 with wxFB v3.9.0. But better create a new issue in their repo - https://github.com/wxFormBuilder/wxFormB...
by Kvaz1r
Mon Jan 21, 2019 6:42 pm
Forum: C++ Development
Topic: wxfile name dialog
Replies: 2
Views: 163

Re: wxfile name dialog

I tried using the filedialog save property but it jus shows, I input a name and it displays an error. What kind of error did you get? Can you post full code for reproducing? Though, there is enough material with examples of using wxFileDialog you can just copy-paste code from there and fit it for y...