Search found 162 matches

by Ronald
Fri Oct 04, 2019 10:57 am
Forum: C++ Development
Topic: wxDialog default affirm/escape actions not work properly
Replies: 7
Views: 451

Re: wxDialog default affirm/escape actions not work properly

Press Enter, nothing happend (Question 1: Why doesn't ShowModal returns with wxID_OK?) Why should it? Because GetAffirmativeId() == wxID_OK. When does AffirmativeId take effect? Press Enter, ShowModal returns with wxID_CANDEL (The bug!) That's because the "cancel" button was the last button that ha...
by Ronald
Fri Oct 04, 2019 9:39 am
Forum: C++ Development
Topic: wxDialog default affirm/escape actions not work properly
Replies: 7
Views: 451

wxDialog default affirm/escape actions not work properly

OS: Windows 10 Runnable code in one cpp, description in app. #define WXUSINGDLL #include <wx/log.h> #include <wx/wx.h> class TestDlg : public wxDialog { public: TestDlg(wxWindow * parent, wxWindowID id, const wxString & title, const wxPoint & pos = wxDefaultPosition, const wxSize & size = wxDefaultS...
by Ronald
Fri Oct 04, 2019 8:48 am
Forum: General Forum Issues
Topic: forums very slow
Replies: 3
Views: 2813

Re: forums very slow

While it seems that the forum is a little slower than usual these days, i don't think anything can be done from this side regarding the speed in China. Ajax may help, let the clien formatting the page. The traffic probably runs through many "listening" stations. If http protocol is queued for check...
by Ronald
Fri Oct 04, 2019 3:14 am
Forum: General Forum Issues
Topic: forums very slow
Replies: 3
Views: 2813

forums very slow

https://forums.wxwidgets.org Loading analysis
forum_slow.png
In China
by Ronald
Thu Oct 03, 2019 12:15 pm
Forum: C++ Development
Topic: Custom event question in doc
Replies: 4
Views: 451

Re: Custom event question in doc

DavidHart wrote:
Thu Oct 03, 2019 10:25 am
See this wxWiki page (or the wx source code, of course).
The wiki has no keyword for any case of "PLOT".

If the macro EVT_PLOT here has no definition, the doc got a mistake.
by Ronald
Thu Oct 03, 2019 10:21 am
Forum: C++ Development
Topic: Custom event question in doc
Replies: 4
Views: 451

Custom event question in doc

https://docs.wxwidgets.org/trunk/overvi ... m_ownclass
In section "Defining Your Own Event Class":

Code: Select all

wxBEGIN_EVENT_TABLE(MyFrame, wxFrame)
    EVT_PLOT(ID_MY_WINDOW, MyFrame::OnPlot)
wxEND_EVENT_TABLE()
Where does EVT_PLOT come from?
by Ronald
Fri Sep 27, 2019 12:43 pm
Forum: General Development
Topic: How to upload code to demonstrate a bug?
Replies: 8
Views: 1440

Re: How to upload code to demonstrate a bug?

As for lib path dependency, TBH I really cannot imagine this kind of a bug, as paths can be freely modified in users' projects. I am not saying this cannot happen, but I believe it to be quite rare. I mean if providing a Visual Studio solution, the lib path for wxWidgets needs to be changed for oth...
by Ronald
Fri Sep 27, 2019 10:20 am
Forum: General Development
Topic: How to upload code to demonstrate a bug?
Replies: 8
Views: 1440

Re: How to upload code to demonstrate a bug?

Just keep in mind that the code change should be as small as described here https://trac.wxwidgets.org/wiki/HowToSubmitTicket#ReproducingtheProblem OK. BTW, In China, visit trac & forum of wxWidgets is very slow, so I become lazy to visit more web pages. However the doc is good. Thanks. There is us...
by Ronald
Fri Sep 27, 2019 10:15 am
Forum: General Development
Topic: How to upload code to demonstrate a bug?
Replies: 8
Views: 1440

Re: How to upload code to demonstrate a bug?

Is it about the wxPropertyGrid bug? Not only, I have filed 3 bugs. BTW, 2 bugs are fixed instantly, but the status of the wxPropertyGrid bug has been new for 12 days https://trac.wxwidgets.org/ticket/18502 So, is it ok to do a PR on github to show the bug? Or a standalone patch? One of these is usu...
by Ronald
Fri Sep 27, 2019 1:51 am
Forum: General Development
Topic: How to upload code to demonstrate a bug?
Replies: 8
Views: 1440

How to upload code to demonstrate a bug?

I filed a bug on https://trac.wxwidgets.org/ with an attachment of a custom VS2019 solution,
they usually asked like: Can the bug be reproduced in the wxWidgets' samples?
So, is it ok to do a PR on github to show the bug? Or a standalone patch?

Thanks
by Ronald
Tue Sep 17, 2019 10:40 am
Forum: C++ Development
Topic: button right align by AddStretchSpacer not work
Replies: 6
Views: 676

Re: button right align by AddStretchSpacer not work

doublemax wrote:
Tue Sep 17, 2019 5:05 am
Your code looks ok, the problem is mostly how you insert pSizer_0_0 into another sizer. E.g. if you put it into a vertical sizer, set the wxEXPAND flag so that it takes the whole width.

Code: Select all

pSizer_0->Add(pSizer_0_0, 0, wxEXPAND);
Works, the design by wx is fine, I just haven't realized it.
Thanks
by Ronald
Tue Sep 17, 2019 3:13 am
Forum: C++ Development
Topic: button right align by AddStretchSpacer not work
Replies: 6
Views: 676

Re: button right align by AddStretchSpacer not work

Tell the sizer how to align the buttons using some flag of https://docs.wxwidgets.org/trunk/classwx_sizer.html#wxsizer_flags pSizer_0_0->Add(new wxButton(this, wxID_OK, L"AAA"), 0, wxALIGN_RIGHT); pSizer_0_0->Add(new wxButton(this, wxID_CANCEL, L"BBB"),1, wxALIGN_RIGHT); Notice the "0" I added to t...
by Ronald
Mon Sep 16, 2019 9:24 am
Forum: C++ Development
Topic: button right align by AddStretchSpacer not work
Replies: 6
Views: 676

button right align by AddStretchSpacer not work

wxBoxSizer * pSizer_0_0 = new wxBoxSizer(wxHORIZONTAL); pSizer_0_0->AddStretchSpacer(); pSizer_0_0->Add(new wxButton(this, wxID_OK, L"AAA")); pSizer_0_0->Add(new wxButton(this, wxID_CANCEL, L"BBB")); With pSizer_0_0->AddStretchSpacer(); or not, the two buttons are always left aligned, what's the pr...
by Ronald
Sun Sep 15, 2019 12:45 am
Forum: C++ Development
Topic: wxPropertyGrid::ChangePropertyValue not work
Replies: 4
Views: 525

Re: wxPropertyGrid::ChangePropertyValue not work

doublemax wrote:
Sat Sep 14, 2019 6:37 pm
Are you going to open a ticket for this?
OK, to see how fast it will be fixed.
Only if it is not fast enough, or I'll try to do a Pull Request, then I'll really open the source :mrgreen:
by Ronald
Sat Sep 14, 2019 1:16 pm
Forum: General Development
Topic: can not create ticket on trac.wxwidgets.org
Replies: 4
Views: 2248

Re: can not create ticket on trac.wxwidgets.org

This is a screenshot after I clicked "Create ticket" many times. OK. In that case I suggest trying with a different browser and/or turning off any active browser add-ons. If that still fails, please report the issue on the wx-dev mailing list. Tried MS edge, it showed a tip at the top of webpage wh...