Search found 107 matches

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

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 don't realize 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: 83

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: 83

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: 121

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: 89

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...
by Ronald
Sat Sep 14, 2019 11:29 am
Forum: C++ Development
Topic: wxPropertyGrid::ChangePropertyValue not work
Replies: 4
Views: 121

Re: wxPropertyGrid::ChangePropertyValue not work

This looks like a bug indeed. It works if you use CallAfter for the inner method call: if (s.ToDouble(&n)) { n *= 2; CallAfter([=] { bool ok = ChangePropertyValue(_pProp_2, n ); // This line will be executed and return true, but UI doesn't change. // wxPropertyGrid::SetPropertyValue works // wxPGPr...
by Ronald
Sat Sep 14, 2019 11:23 am
Forum: General Development
Topic: can not create ticket on trac.wxwidgets.org
Replies: 4
Views: 89

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

1) The area below the two buttons, where it says 'ticket not yet created', actually is the preview. (Yes, that's confusing: afaict there's no need for the 'Preview' button too.) So, when it says that the ticket is not yet created, that's correct. It's not created until you click the 'Create ticket'...
by Ronald
Sat Sep 14, 2019 8:33 am
Forum: General Development
Topic: can not create ticket on trac.wxwidgets.org
Replies: 4
Views: 89

can not create ticket on trac.wxwidgets.org

Can you?
Capture.PNG
Capture.PNG (14.24 KiB) Viewed 86 times
by Ronald
Sat Sep 14, 2019 6:51 am
Forum: C++ Development
Topic: autocompletion for wxTextCtrl to match any part of input
Replies: 1
Views: 36

autocompletion for wxTextCtrl to match any part of input

Q: wxTextCompleterSimple only supports to match the leading part of input, how to make autocompletion to match any part of the input? Below is the code in the doc of wxTextCompleterSimple ( simplified) class MyTextCompleter : public wxTextCompleterSimple { public: virtual void GetCompletions(const w...
by Ronald
Fri Sep 13, 2019 12:31 pm
Forum: C++ Development
Topic: wxPropertyGrid::ChangePropertyValue not work
Replies: 4
Views: 121

wxPropertyGrid::ChangePropertyValue not work

demo in attachment It's a VS2019 solution, easy to migrate. ShowBug.VS2019.7z main code #include "pch.h" #include "BuggyPropGrid.h" BEGIN_EVENT_TABLE(BuggyPropGrid, wxPropertyGrid) EVT_PG_CHANGED(wxID_ANY, BuggyPropGrid::OnPropChanged) EVT_PG_DOUBLE_CLICK(wxID_ANY, BuggyPropGrid::OnPGDClick) END_EVE...
by Ronald
Sat Sep 07, 2019 7:22 am
Forum: C++ Development
Topic: wider child control makes wxScrolledWindow auto scroll
Replies: 7
Views: 120

Re: wider child control makes wxScrolledWindow auto scroll

It's always possible that a recent commit breaks something, but it's rare and if it happens, it's usually fixed quickly. If HEAD commit is easy to use, it'll be easy to contribute to. The only problem in my case (Visual Studio 2019) is that when file(s) added/removed the solution needs to be regene...
by Ronald
Fri Sep 06, 2019 7:45 am
Forum: C++ Development
Topic: wider child control makes wxScrolledWindow auto scroll
Replies: 7
Views: 120

Re: wider child control makes wxScrolledWindow auto scroll

doublemax wrote:
Fri Sep 06, 2019 7:17 am
I would just get the latest master branch.

Otherwise you could also try to override
void HandleOnChildFocus(wxChildFocusEvent& event);
If HEAD commit works without unacceptable bug, I prefer it.

Thanks
by Ronald
Fri Sep 06, 2019 3:25 am
Forum: C++ Development
Topic: wider child control makes wxScrolledWindow auto scroll
Replies: 7
Views: 120

Re: wider child control makes wxScrolledWindow auto scroll

https://docs.wxwidgets.org/trunk/classwx_scrolled.html#aa52533d3486dafec14afe3742fee383b The doc says it is supported since 3.1.3 The lib directory contains some files like "wxbase313u_net_vc_x64.dll", but no ShouldScrollToChildOnFocus for override. I've checked the git repo, the newest version v3....
by Ronald
Fri Sep 06, 2019 3:17 am
Forum: C++ Development
Topic: Where to delete the object for modaless dialog
Replies: 12
Views: 111

Re: Where to delete the object for modaless dialog

Hi, The customization crawler dialog should probably be done as a modal dialog. Now when the crawler setting is satisfactory, user presses OK, wxProgressDialog starts (probnably wxGenericProgressDialog) with some customizatrions - such as number of tasks completed/succeeded/failed, etc. I've looked...