Search found 11 matches
- Fri Nov 03, 2023 5:01 pm
- Forum: Compiler / Linking / IDE Related
- Topic: App much slower in wxWidgets 3 than in wxWidgets 2
- Replies: 9
- Views: 3222
Re: App much slower in wxWidgets 3 than in wxWidgets 2
My bad, the wx 2.8.14 version was a typo. The tests were wxUSE_STD_CONTAINERS=1 or wxUSE_STD_STRING=0, not both. I've compiled wx with both modified and edited the message to add the results with that build. Next thing I have to do is to understand what wxUSE_STD_STRING=0 implies so I don't break an...
- Thu Nov 02, 2023 10:02 pm
- Forum: Compiler / Linking / IDE Related
- Topic: App much slower in wxWidgets 3 than in wxWidgets 2
- Replies: 9
- Views: 3222
Re: App much slower in wxWidgets 3 than in wxWidgets 2
So I've tested your suggestions (much appreciated!) and found interesting results. Spoiler: std::vector<wxString> is always faster. First, the code I'm testing is: wxStopWatch stopwatch; long time1=0, time2=0; wxArrayString arr; wxString str=wxT("hello_World"); stopwatch.Start(); for(long ...
- Wed Nov 01, 2023 10:06 pm
- Forum: Compiler / Linking / IDE Related
- Topic: App much slower in wxWidgets 3 than in wxWidgets 2
- Replies: 9
- Views: 3222
Re: App much slower in wxWidgets 3 than in wxWidgets 2
Thanks, PB. I've tried your advice and changed the most used functions (lots of them!) but I didn't get any noticeable gain. However, I could narrow a little bit more the problem by commenting out code, and I am pretty sure the main problem lies on wxArrayString. Googleing that I've found this discu...
- Wed Nov 01, 2023 4:29 pm
- Forum: Compiler / Linking / IDE Related
- Topic: App much slower in wxWidgets 3 than in wxWidgets 2
- Replies: 9
- Views: 3222
App much slower in wxWidgets 3 than in wxWidgets 2
Hi, everybody. I've been using wxWidgets for a long time but to be honest, I must say I haven't updated it for a long, long time (I was stuck at wxWidgets 2.8.10!). Now I'm updating my setup (Codeblocks+wxWidgets) and I have a problem with my app, because it runs very slowly under wxWidgets 3.2.3 co...
- Wed Dec 14, 2011 9:51 pm
- Forum: C++ Development
- Topic: wxProcess, wxExecute and Redirect
- Replies: 2
- Views: 2712
Re: wxProcess, wxExecute and Redirect
That was it! There were problems with the output of the process. It looks that this kind of programs are quite verbose, so I've reduced their verbosity where I could and, the thing that finally solved the problem was written in your files: using wxInputStream instead of wxTextInputStream so there ar...
- Thu Dec 08, 2011 5:14 pm
- Forum: C++ Development
- Topic: wxProcess, wxExecute and Redirect
- Replies: 2
- Views: 2712
wxProcess, wxExecute and Redirect
Hi everybody. I have a few problems redirecting the output of a program using wxProcess::Redirect. I'm rather new to wxExecute and wxProcess so I hope this question is an easy one. Basically, I want to launch an external program from my application and hide it so it works in the background and doesn...
- Mon Feb 09, 2009 6:12 pm
- Forum: C++ Development
- Topic: wxSizer doesn't free space when hidden
- Replies: 12
- Views: 4146
You want the window to be resize ? Yes, TrV, I want something so the user can dinamically choose the size of the window (smaller window with less controls, bigger window with more options), but always leaving a way to grow a text control which shows the result of the calculations. I've marked the p...
- Mon Feb 09, 2009 6:08 pm
- Forum: C++ Development
- Topic: wxSizer doesn't free space when hidden
- Replies: 12
- Views: 4146
- Mon Feb 09, 2009 6:03 pm
- Forum: C++ Development
- Topic: wxSizer doesn't free space when hidden
- Replies: 12
- Views: 4146
Hi, Auria, In fact I want both. I want the text to be quite small, but leaving the option to the user to resize it (so, if the user resize the window only the text grows). If the user wants even more space, he can disable the middle part of the window, and so the windows will be smaller, but still r...
- Mon Feb 09, 2009 4:22 pm
- Forum: C++ Development
- Topic: wxSizer doesn't free space when hidden
- Replies: 12
- Views: 4146
First, thanks for your help. Disch is right. Maybe I'm using it the wrong way, but Layout() only updates the sizers position, but without changing the window size. I've made a quick example in case you want to see what is my problem. Basically, I have one wxBoxSizer (as suggested by Disch) which con...
- Sun Feb 08, 2009 8:00 pm
- Forum: C++ Development
- Topic: wxSizer doesn't free space when hidden
- Replies: 12
- Views: 4146
wxSizer doesn't free space when hidden
Hi to everybody, I've made an application which uses three wxFlexGridSizer (in one column and three rows). I want to be able to hide the middle one in order to reduce the window height. It works partially, as I can hide it, but the bottom one take the space the other sizer occupied (it is the only o...