Search found 1604 matches

by catalin
Sat Dec 23, 2023 8:04 am
Forum: C++ Development
Topic: Non-blocking (Popup)menu possible?
Replies: 9
Views: 3733

Re: Non-blocking (Popup)menu possible?

AFAIR what you pass to CallAfter will be executed in the main thread at the next idle event. So CallAfter is not itself an idle event, but depends on an idle event.
by catalin
Tue Oct 17, 2023 5:52 pm
Forum: C++ Development
Topic: Large number of widgets in a scrolling window is very slow
Replies: 10
Views: 3957

Re: Large number of widgets in a scrolling window is very slow

Google can find several old reports about similar things. Some mention many wxStaticText instances in a wxScrolledWindow. Others are about Windows DWM which spikes the CPU when moving many windows, and that is even worse with many children of a scrolled window. There is also an old change that fixed...
by catalin
Tue Jun 13, 2023 12:38 pm
Forum: Compiler / Linking / IDE Related
Topic: Problem with wxUSE_STD_CONTAINERS = 1
Replies: 6
Views: 1539

Re: Problem with wxUSE_STD_CONTAINERS = 1

One more thing: did wxWidgets fail to build or only your app? Because if you're using pre-compiled libs (dlls, right?), and set wxUSE_STD_CONTAINERS = 1 only for your app, then it won't work. You need to have the same options set for libs and apps using those libs. IOW if the libs have been built wi...
by catalin
Tue Jun 13, 2023 11:57 am
Forum: Compiler / Linking / IDE Related
Topic: Problem with wxUSE_STD_CONTAINERS = 1
Replies: 6
Views: 1539

Re: Problem with wxUSE_STD_CONTAINERS = 1

Hi and welcome, I think you need to clarify a few things: - when were you able to build and run the app (when wxUSE_STD_CONTAINERS = 0?), and when did it fail to compile (when wxUSE_STD_CONTAINERS = 1)? - even if PB's guide is relatively easy to find, it might help if you could add a direct link to ...
by catalin
Fri Nov 11, 2022 1:36 pm
Forum: C++ Development
Topic: invalid ref data count
Replies: 3
Views: 1116

Re: invalid ref data count

Make sure wx instances are not created before wxWidgets was initialized (i.e. a static wxFont variable in your case).
by catalin
Wed Nov 09, 2022 9:34 am
Forum: C++ Development
Topic: Get text from other wxTextCtrl
Replies: 9
Views: 1933

Re: Get text from other wxTextCtrl

Either that, or have the text controls as member variables instead of local. The you could read their values only when Enter was pressed
by catalin
Wed Nov 09, 2022 7:13 am
Forum: C++ Development
Topic: Get text from other wxTextCtrl
Replies: 9
Views: 1933

Re: Get text from other wxTextCtrl

Keep them as member variables of MainFrame, and read them from the handler
by catalin
Wed Sep 28, 2022 10:47 am
Forum: C++ Development
Topic: How to bring a window in the back to the front
Replies: 6
Views: 1339

Re: How to bring a window in the back to the front

you can try wxWindow::Raise() That would still be unreliable. I remember an app that was available as part of the old wxCode, which created overlapping widgets. When using 2.8.x the last clicked widget would be drawn on top. With 2.9.x that changed, and the last clicked widget went underneath... Ev...
by catalin
Wed Sep 28, 2022 10:29 am
Forum: C++ Development
Topic: How to bring a window in the back to the front
Replies: 6
Views: 1339

Re: How to bring a window in the back to the front

You cannot (reliably) do that. Overlapping widgets are not supported. You can only lay them out side by side. Only top-level wxWindow-s can overlap.
by catalin
Tue Feb 22, 2022 8:49 am
Forum: C++ Development
Topic: BEGIN_EVENT_TABLE() problem
Replies: 4
Views: 1952

Re: BEGIN_EVENT_TABLE() problem

Code: Select all

BEGIN_EVENT_TABLE(cApp, wxFrame)
cApp is not a wxFrame, is it?

Please carefully check your code first. It's not that much.
by catalin
Tue Feb 22, 2022 8:43 am
Forum: C++ Development
Topic: BEGIN_EVENT_TABLE() problem
Replies: 4
Views: 1952

Re: BEGIN_EVENT_TABLE() problem

You are missing the semicolon after DECLARE_EVENT_TABLE(). Otherwise you can make it private too.
by catalin
Mon Feb 14, 2022 2:37 pm
Forum: C++ Development
Topic: How to get a pointer to the main frame
Replies: 5
Views: 1039

Re: How to get a pointer to the main frame

For the main frame you could use wxTheApp->GetTopWindow(), or wxGetApp().m_frame1 (see wxDECLARE_APP macro). Or, you could get the parent of the text controls that you deleted and use it for the new ones as well. BTW, why do you delete the text controls, and how? Why don't you just clear them or &qu...
by catalin
Wed Dec 08, 2021 9:46 am
Forum: C++ Development
Topic: Hello World + a bit more, but doesn't work
Replies: 3
Views: 804

Re: Hello World + a bit more, but doesn't work

Which part of the wx code were you expecting to send a wxCloseEvent with an id set to your `ID_Close` value?

p.s. Please explain in a few words what "doesn't work" means to you.
by catalin
Tue Nov 16, 2021 2:44 pm
Forum: General Development
Topic: Modern C++
Replies: 9
Views: 7048

Re: Modern C++

the new stable branch after that will be v3.4 (inheriting development branch 3.3) which may not be released in this decade Things will most likely evolve that way, but saying it like that could be very discouraging :) Before 3.4 stable will be released there will be 3.3 development releases. And mo...
by catalin
Mon Nov 15, 2021 10:35 pm
Forum: General Development
Topic: Modern C++
Replies: 9
Views: 7048

Re: Modern C++

What is the philosophy regarding updating the wxWidgets library code to modern C++? [...] Will the requirement to be compiled by non-C++11 compilers eventually be deprecated? Newer C++ standards have been mentioned before, last I've read was that after v3.2 "at least C++11 (and maybe C++14) wi...