Search found 261 matches

by Ronald
Sat Sep 25, 2021 6:35 am
Forum: C++ Development
Topic: wxTreeListCtrl column width uncontrollable
Replies: 4
Views: 197

Re: wxTreeListCtrl column width uncontrollable

doublemax wrote:
Fri Sep 24, 2021 3:13 pm
Which platform and wxWidgets version are you using?
Manjaro
wxgtk3 3.0
by Ronald
Fri Sep 24, 2021 2:02 pm
Forum: C++ Development
Topic: wxTreeListCtrl column width uncontrollable
Replies: 4
Views: 197

Re: wxTreeListCtrl column width uncontrollable

What's the question, what do you want to achieve? The problem is the width of the first column of wxTreeListCtrl is uncontrollable, wheather the width of the first column is set or not, the result is the same, for comparsion, the width of the second column can be set as expected. The question is ho...
by Ronald
Wed Sep 22, 2021 11:08 am
Forum: C++ Development
Topic: wxTreeListCtrl column width uncontrollable
Replies: 4
Views: 197

wxTreeListCtrl column width uncontrollable

AppendColumn(wxT("Name"), 100); AppendColumn(wxT("Value")); ↑ col 1 fits, col 0 fills the remained space AppendColumn(wxT("Name")); AppendColumn(wxT("Value"), 100); ↑ col 1 is 100, col 0 fills the remained space similar for the cod below AppendColumn(wxT("Name")); AppendColumn(wxT("Value")); SetCol...
by Ronald
Fri Sep 10, 2021 5:21 am
Forum: Compiler / Linking / IDE Related
Topic: cmake can't find some modules of wxWidgets by default
Replies: 10
Views: 1444

Re: cmake can't find some modules of wxWidgets by default

stahta01 wrote:
Thu Sep 09, 2021 9:17 pm

Code: Select all

/opt/wxWidgets/bin/wx-config --libs std
Try and see if the list is the same as the standard library list.

Code: Select all

/opt/wxWidgets/bin/wx-config --libs std
equivalent to

Code: Select all

/opt/wxWidgets/bin/wx-config --libs
by Ronald
Thu Sep 09, 2021 3:10 am
Forum: Compiler / Linking / IDE Related
Topic: cmake can't find some modules of wxWidgets by default
Replies: 10
Views: 1444

Re: cmake can't find some modules of wxWidgets by default

I believe wx-config was changed around 3.1 so that only base and core will be found on "wx-config --all". In a gtk3 wx3.1.5 build, doing wx-config --libs all results in: -lwx_gtk3u_xrc-3.1 -lwx_gtk3u_webview-3.1 -lwx_gtk3u_stc-3.1 -lwx_gtk3u_richtext-3.1 -lwx_gtk3u_ribbon-3.1 -lwx_gtk3u_propgrid-3....
by Ronald
Wed Sep 08, 2021 5:30 pm
Forum: Compiler / Linking / IDE Related
Topic: cmake can't find some modules of wxWidgets by default
Replies: 10
Views: 1444

Re: cmake can't find some modules of wxWidgets by default

I believe wx-config was changed around 3.1 so that only base and core will be found on "wx-config --all". All other needs to be exp[licitly stated. I did a test, results as below, it is complicated, it think it's better to inlucde components needed explicitly everytime. find_package(wxWidgets REQUI...
by Ronald
Wed Sep 08, 2021 5:22 pm
Forum: Platform Related Issues
Topic: wxgtk3 3.1.5 crash on Linux
Replies: 7
Views: 1112

Re: wxgtk3 3.1.5 crash on Linux

Sovled, it's my fault

The problem is
LibA depends on wx 3.0
AppA depends on wx 3.1 and LibA

Thanks all the same

BTW, it's not a "Platform Related Issue".
by Ronald
Wed Sep 08, 2021 4:52 pm
Forum: Platform Related Issues
Topic: wxgtk3 3.1.5 crash on Linux
Replies: 7
Views: 1112

Re: wxgtk3 3.1.5 crash on Linux

Initialize it at runtime from OnInit(). The problem is not the font name. It's the fact that wxWidgets needs to convert the string literal into a wxString. For that it uses wxConv which is not initialized yet. It's very hard to refactor But wx 3.0.5.1 works I'll build a debug version and wx and see...
by Ronald
Wed Sep 08, 2021 4:25 pm
Forum: Platform Related Issues
Topic: wxgtk3 3.1.5 crash on Linux
Replies: 7
Views: 1112

Re: wxgtk3 3.1.5 crash on Linux

What about any global instance of any wxWidgets class? Yes, class Global , with many static members, and I have found a suspicious one mainUIFont = wxFont(9, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, "Microsoft YaHei UI"); I'll do on it. UPDATE changed it to mainUIFont =...
by Ronald
Wed Sep 08, 2021 4:14 pm
Forum: Platform Related Issues
Topic: wxgtk3 3.1.5 crash on Linux
Replies: 7
Views: 1112

Re: wxgtk3 3.1.5 crash on Linux

That looks like you're initializing a static or global wxString variable somewhere. I have searched static wxString and static const wxString , but found nothing. However wxgtk3 3.0.5.1 from the official repo works well. My app is using C++ 17, but wxgtk 3.1.5 is built in a default C++ standard, I'...
by Ronald
Wed Sep 08, 2021 3:59 pm
Forum: Platform Related Issues
Topic: wxgtk3 3.1.5 crash on Linux
Replies: 7
Views: 1112

wxgtk3 3.1.5 crash on Linux

wxgtk3 in official linux repo is 3.0.5.1, using it, the applicaiton run successfully, but with a little bug, btw the bug doesn't appear on Windows.
So tried wxgtk3 3.1.5, building successfully, but crash before enter bool MyApp::OnInit(), error in screenshot below
wx_crash.png
by Ronald
Wed Sep 08, 2021 3:40 pm
Forum: Compiler / Linking / IDE Related
Topic: cmake can't find some modules of wxWidgets by default
Replies: 10
Views: 1444

Re: cmake can't find some modules of wxWidgets by default

When some component like "propgrid" is needed,
it should be included explicit,
as a side effect component like "core" should also be included explicitly.

e.g.

Code: Select all

find_package(wxWidgets REQUIRED COMPONENTS core adv aui propgrid)
by Ronald
Fri Sep 03, 2021 4:23 am
Forum: Open Discussion
Topic: Will wx support gtk4?
Replies: 3
Views: 5062

Re: Will wx support gtk4?

Now option gtk4 available for wxBUILD_TOOLKIT
Great!
by Ronald
Thu Sep 02, 2021 1:21 pm
Forum: C++ Development
Topic: Is wxString::Printf portable?
Replies: 2
Views: 1049

Re: Is wxString::Printf portable?

ONEEYEMAN wrote:
Tue Aug 31, 2021 3:30 pm
It is.
Unless you have a proof to be otherwise...
I've tested on both Linux and Windows, it is portable.
For wxString formatting, %s and %S works alternatively.
by Ronald
Thu Sep 02, 2021 1:37 am
Forum: Compiler / Linking / IDE Related
Topic: cmake can't find some modules of wxWidgets by default
Replies: 10
Views: 1444

Re: cmake can't find some modules of wxWidgets by default

ONEEYEMAN wrote:
Tue Aug 31, 2021 3:33 pm
Hi,
Does it find core and base?

Thank you.
Both, I think find_package(wxWidgets REQUIRED) should find all components