Search found 20 matches

by david_mtl
Mon Jun 29, 2020 6:08 pm
Forum: Platform Related Issues
Topic: Events not triggered for UI loaded from DLL. Windows only.
Replies: 3
Views: 849

Re: Events not triggered for UI loaded from DLL. Windows only.

I found the problem.

The parent of the custom panel was set to the wxFrame of the app and not to its main wxPanel. I changed it and it's now working properly. For some reason, it wasn't a problem on Linux.
by david_mtl
Mon Jun 29, 2020 5:10 pm
Forum: Platform Related Issues
Topic: Events not triggered for UI loaded from DLL. Windows only.
Replies: 3
Views: 849

Re: Events not triggered for UI loaded from DLL. Windows only.

I am. I have 2 DLL that uses wxWidgets + my main app. In my main app, I can open a custom dialog defined in my DLL and it works correctly. The problem is only when the ui is integrated into the panel of the main app. This is a screen shot of Dependency Walker. My app, "APP-LIMITESCYCLES" u...
by david_mtl
Mon Jun 29, 2020 4:04 pm
Forum: Platform Related Issues
Topic: Events not triggered for UI loaded from DLL. Windows only.
Replies: 3
Views: 849

Events not triggered for UI loaded from DLL. Windows only.

Hi everyone, I'm using a DLL for sections of my UI that are reused in multiple apps. For example, I defined a custom dialog in the DLL for my options window. When I click a button in my app, the dialog pops up and everything works correctly. In the DLL, I also define a class (MyCustomPanel) derived ...
by david_mtl
Mon May 11, 2020 7:11 pm
Forum: C++ Development
Topic: How do you read a ANSI encoded files and use it with wxString?
Replies: 2
Views: 637

Re: How do you read a ANSI encoded files and use it with wxString?

Code: Select all

wxString name = wxString(n.c_str(), wxConvISO8859_1);
worked like a charm, thanks a lot for your help!
by david_mtl
Mon May 11, 2020 2:14 pm
Forum: C++ Development
Topic: How do you read a ANSI encoded files and use it with wxString?
Replies: 2
Views: 637

How do you read a ANSI encoded files and use it with wxString?

So, I've been searching for the way to do it and I just can't find it. I'm sure I am missing something trivial. I'm reading a binary a file where characters are encoded in ANSI (8 bit characters). I want to show their content in a wxString. For exemple, I read the letter "é": - fread gives...
by david_mtl
Fri Apr 24, 2020 8:27 pm
Forum: C++ Development
Topic: wxDirDialog with multiple selections?
Replies: 9
Views: 1452

Re: wxDirDialog with multiple selections?

Mac probably doesn't support it - it just an indication that the dialog/panel supports selecting the directories vs files. Did you check it? I don't understand what you mean. That's the SDK to write apps on MacOS. Here's the api for the file dialog: https://developer.apple.com/documentation/appkit/...
by david_mtl
Fri Apr 24, 2020 6:00 pm
Forum: C++ Development
Topic: wxDirDialog with multiple selections?
Replies: 9
Views: 1452

Re: wxDirDialog with multiple selections?

Done.
http://trac.wxwidgets.org/ticket/18736

Meanwhile, if anyone's got any pointers on how to modify wxFileDialog to create a version that selects folders instead of files, I'am all ears.

Thx
by david_mtl
Fri Apr 24, 2020 4:51 pm
Forum: C++ Development
Topic: wxDirDialog with multiple selections?
Replies: 9
Views: 1452

Re: wxDirDialog with multiple selections?

I don't remember to have ever seen a dir dialog which allows multiple selections. So the main question is: Does any of the native controls on the 3 major platforms support this? Yep IFileDialog(win32 api) supports both the flag FOS_ALLOWMULTISELECT and FOS_PICKFOLDERS at the same time. IFileDialog:...
by david_mtl
Fri Apr 24, 2020 1:58 pm
Forum: C++ Development
Topic: wxDirDialog with multiple selections?
Replies: 9
Views: 1452

Re: wxDirDialog with multiple selections?

Pumping this question up in case someone's got an idea.
by david_mtl
Tue Apr 21, 2020 6:52 pm
Forum: C++ Development
Topic: wxDirDialog with multiple selections?
Replies: 9
Views: 1452

wxDirDialog with multiple selections?

Hi everyone, how would you go about adding the ability to select multiple folders when using wxDirDialog?

I could use wxGenericDirCtrl to implement my own solution but I wonder if there isn't a more straightforward way of doing it with wxDirDialog.

Thx, stay safe.
by david_mtl
Thu Jan 30, 2020 1:17 am
Forum: Compiler / Linking / IDE Related
Topic: Which build system is best for cross-platform development?
Replies: 7
Views: 1775

Re: Which build system is best for cross-platform development?

Also - it is easier to debug your code with IDE. ;-) That's a pretty good point. I need an easy way to debug my apps. So I see a few options then. - Use codelite with different targets for each platform. - Use a different IDE for each platform. - Use something like CMake to generate a project for e...
by david_mtl
Wed Jan 29, 2020 7:23 pm
Forum: Compiler / Linking / IDE Related
Topic: Which build system is best for cross-platform development?
Replies: 7
Views: 1775

Re: Which build system is best for cross-platform development?

I didn't look how to incorporate everything whe there will be no Xcode, but I'm sure it will be easy as it will have just a appropriate Makefile. So you don't need a CMake/Bakefile/whatever. All you do is to use wizard/MSVC solution to create a project and build it. Just to be sure I understand, do...
by david_mtl
Wed Jan 29, 2020 6:38 pm
Forum: Compiler / Linking / IDE Related
Topic: Which build system is best for cross-platform development?
Replies: 7
Views: 1775

Re: Which build system is best for cross-platform development?

Ah, good to know about Bakefile, thanks!

I guess it would be worth it to bite the bullet and learn CMake, can't be a bad time investment considering how ubiquitous it is.

Food for thought, thanks!
by david_mtl
Wed Jan 29, 2020 5:48 pm
Forum: Compiler / Linking / IDE Related
Topic: Which build system is best for cross-platform development?
Replies: 7
Views: 1775

Which build system is best for cross-platform development?

Hi everyone, I'm evaluating which build system is best for cross-platform development (win/linux/mac) as of 2020. At first, I thought I could use Code Block and have multiple build target but then I found out that it doesn't have a recent port for Mac... I could try Codelite but I'd like to separate...
by david_mtl
Fri Jan 24, 2020 9:34 pm
Forum: Compiler / Linking / IDE Related
Topic: Segmentation fault when creating wxChoice from a DLL in Windows.
Replies: 2
Views: 832

Re: Segmentation fault when creating wxChoice from a DLL in Windows.

Alright, that makes sense. Thanks for the pointer.

EDIT: You were right, wxWidgets was built as a static lib.