Search found 1464 matches

by catalin
Wed Nov 14, 2018 8:40 am
Forum: Compiler / Linking / IDE Related
Topic: App built with static lib needs dlls (windows 7)
Replies: 5
Views: 137

Re: App built with static lib needs dlls (windows 7)

IIUC wx-config is supposed to tell you what wxW builds are available on your system. Does it find both static and dynamic builds? If you don't have the dll build of wxW, you need to build it yourself or install some already built libs. Building the libs is documented. Then for choosing the build tha...
by catalin
Tue Nov 13, 2018 1:03 pm
Forum: Compiler / Linking / IDE Related
Topic: App built with static lib needs dlls (windows 7)
Replies: 5
Views: 137

Re: App built with static lib needs dlls (windows 7)

When it needs the wx dll-s, obviously the app was built using dynamic libs, even if you intended otherwise. I can't help with setting up Eclipse, but the way to select the static libraries is to include the 'static' version of the library e.g. [...] -I"/msys64/lib/wx/include/msw-unicode-static-...
by catalin
Mon Nov 12, 2018 3:15 pm
Forum: C++ Development
Topic: wxTextCtrl vertical text alignment
Replies: 5
Views: 71

Re: wxTextCtrl vertical text alignment

Well, there you have it. You set an explicit size for the text control which probably makes it look ugly. And it will probably look even uglier if different theme, DPI etc will be used, when button height will differ from whatever you're setting now for the text control. I don't know why you need th...
by catalin
Mon Nov 12, 2018 2:58 pm
Forum: C++ Development
Topic: wxTextCtrl vertical text alignment
Replies: 5
Views: 71

Re: wxTextCtrl vertical text alignment

No, there isn't. You need to show some minimal code that you actually use when getting the described result. The text control should automatically adjust its size based on the font [size] that was used, unless you explicitly set the control size, in which case there are more chances that it will loo...
by catalin
Sun Nov 11, 2018 10:01 am
Forum: C++ Development
Topic: default constructors in wxWidgets
Replies: 7
Views: 105

Re: default constructors in wxWidgets

wxWindow [derived] classes instantiated using the default constructor are just the containers without the native widget. Obviously the default constructor will not call Create() (which for non-top level windows would also be impossible because the parent is required). The default constructor + Creat...
by catalin
Tue Oct 30, 2018 3:17 pm
Forum: C++ Development
Topic: wxEVT_WINDOW_MODAL_DIALOG_CLOSED isn't fired [SOLVED]
Replies: 8
Views: 260

Re: wxEVT_WINDOW_MODAL_DIALOG_CLOSED isn't fired [SOLVED]

That is not a "crash" but an assert, and the difference between the 2 is significant.

When should the timer event occur? After the dialog was "closed" in one of the other button events?
by catalin
Tue Oct 30, 2018 2:38 pm
Forum: C++ Development
Topic: wxEVT_WINDOW_MODAL_DIALOG_CLOSED isn't fired [SOLVED]
Replies: 8
Views: 260

Re: wxEVT_WINDOW_MODAL_DIALOG_CLOSED isn't fired [SOLVED]

Does calling EndModal(wxID_OK) instead of the last 2 calls change anything?
by catalin
Tue Oct 23, 2018 12:24 pm
Forum: C++ Development
Topic: Why is my thread detached? [SOLVED]
Replies: 11
Views: 348

Re: Why is my thread detached? [SOLVED]

wxJack wrote:I verify it with IsDetached() fucntion.

How do you verify it? Maybe you're verifying a different thread.
by catalin
Sat Oct 13, 2018 1:10 pm
Forum: Compiler / Linking / IDE Related
Topic: Program exe release not working [SOLVED]
Replies: 2
Views: 299

Re: Program exe release not working [SOLVED]

Copy the required dll-s next to your exe.
by catalin
Fri Oct 12, 2018 11:54 am
Forum: C++ Development
Topic: wxThread & GUI
Replies: 26
Views: 523

Re: wxThread & GUI

if I may chime in, slightly off topic, I personally don't like event based communication between threads. Why not? It's true that it may be difficult to achieve that between all threads, but for sending something from a secondary thread to the main thread it is IMHO the simplest way. As long as this...
by catalin
Mon Oct 08, 2018 3:38 pm
Forum: C++ Development
Topic: Number as text input
Replies: 4
Views: 754

Re: Number as text input

r4nd0m6uy wrote:Is there a page with a collection of all widgets, so I don't need to ask?

Build 'widgets' sample; it has a lot of them used there if not all.
by catalin
Mon Oct 08, 2018 3:32 pm
Forum: C++ Development
Topic: wxThread & GUI
Replies: 26
Views: 523

Re: wxThread & GUI

2)Alternatively, I was thinking that I can define all the things I need for calculations as members of MyThread class, and then communicate the result of these calculations to the main thread So far it sounds like the way to go. using a shared array Not the neatest way to do it. You can pass the ar...
by catalin
Wed Oct 03, 2018 9:59 pm
Forum: C++ Development
Topic: Compatibility with C++11 threads
Replies: 2
Views: 111

Re: Compatibility with C++11 threads

are wx threads compatible with C++11 threads? There is no such thing as compatibility between types of threads, and none is required. You can use any synchronisation mechanism with any and all of them. It's like using a spoon in a bowl or a deep dish - the spoon doesn't need to know where it will b...
by catalin
Wed Sep 26, 2018 9:11 pm
Forum: General Development
Topic: Tool to find memory leaks
Replies: 18
Views: 702

Re: Tool to find memory leaks

VS 2017, VLD v2.5.1, minimal sample built as {static debug x64, DLL debug x86, DLL debug x64}, they all worked without issue and correctly reported intentionally created mem leaks, with the stack trace that created them. wxW master branch was a couple of days old at most.

Go to advanced search