Search found 26 matches

by gul_garak
Wed Mar 31, 2021 6:02 pm
Forum: C++ Development
Topic: Event source: menu vs accelerator
Replies: 4
Views: 1109

Re: Event source: menu vs accelerator

Or - as a quick and dirty solution - you could check for the status of the CTRL key, which is probably still down when the keyboard shortcut was used. https://docs.wxwidgets.org/trunk/group__group__funcmacro__misc.html#ga82a18ac43492bfb375604c41b71ce84f This worked, thank you again!! :D - Alejandro
by gul_garak
Wed Mar 31, 2021 5:13 pm
Forum: C++ Development
Topic: Event source: menu vs accelerator
Replies: 4
Views: 1109

Re: Event source: menu vs accelerator

Hi, What problem you are trying to solve? This would be a very ugly feature. The handler should work the same way independently of user action. Otherwise you user will complain about that. Thank you. It's for handling the paste action. We'd like the paste position to follow the mouse cursor when us...
by gul_garak
Wed Mar 31, 2021 2:33 am
Forum: C++ Development
Topic: Event source: menu vs accelerator
Replies: 4
Views: 1109

Event source: menu vs accelerator

Hello!

Does anyone know if there's a way to determine the source of a wxCommandEvent that could have been either triggered from the menu itself or via an accelerator shortcut?

I know the Windows API has that info, but does it make it down to the wxWidgets events?

Thank you!

- Alejandro
by gul_garak
Tue Jul 30, 2019 3:56 pm
Forum: Platform Related Issues
Topic: wxWidgets Shared Library and Linux
Replies: 7
Views: 1496

Re: wxWidgets Shared Library and Linux

Thank you both for the replies so far! I was able to (properly this time) set the rpath for my binary so that it finds our custom wxWidgets libs included with the app. So I think that's a viable solution. As you pointed out I will still need to build for distros that are very different, but this way...
by gul_garak
Tue Jul 30, 2019 3:44 pm
Forum: Platform Related Issues
Topic: wxWidgets Shared Library and Linux
Replies: 7
Views: 1496

Re: wxWidgets Shared Library and Linux

Hi, What type of custom changes did you do? Why not submit them as a patch to wxWidgets so that it will be included? Or if they are specific to your application - why not create a child class{es} and update them with you modifications? Thank you. We did create new classes for most of our changes th...
by gul_garak
Mon Jul 29, 2019 7:44 pm
Forum: Platform Related Issues
Topic: wxWidgets Shared Library and Linux
Replies: 7
Views: 1496

Re: wxWidgets Shared Library and Linux

It's unusual to need to create wx static builds on linux, but it's perfectly possible. Just add --disable-shared to your configure options. Thank you for the reply! When I searched the forums the consensus was that linking to wxWidgets statically was a bad idea because wxWidgets dependencies would ...
by gul_garak
Mon Jul 29, 2019 7:18 pm
Forum: Platform Related Issues
Topic: wxWidgets Shared Library and Linux
Replies: 7
Views: 1496

wxWidgets Shared Library and Linux

Hello! I'm trying to figure out the best way to go around distributing wxWidgets as a shared library with my application in Linux (starting with Ubuntu). The reason I can't simply have wxWidgets as a dependency for users to install is that I had to make some custom changes to wxWidgets, so I have to...
by gul_garak
Thu Jan 31, 2019 12:48 am
Forum: Announcements and Discoveries
Topic: ANN: New wxWidgets based app, Other World Mapper
Replies: 3
Views: 5388

Re: ANN: New wxWidgets based app, Other World Mapper

doublemax wrote:Looks very professional. Well done =D>
Thank you!! :)

We really appreciate all your replies in the forums, they've been very helpful!
by gul_garak
Tue Jan 29, 2019 8:05 pm
Forum: Announcements and Discoveries
Topic: ANN: New wxWidgets based app, Other World Mapper
Replies: 3
Views: 5388

ANN: New wxWidgets based app, Other World Mapper

Hello! Our team wanted to announce that Other World Mapper is now a wxWidgets based app. https://www.otherworldmapper.com/ Thank you everyone from the wxWidgets community for the tutorials and forums threads that have been very helpful getting us here. Also, doublemax and ONEEYEMAN, if either of you...
by gul_garak
Tue Dec 18, 2018 3:25 am
Forum: C++ Development
Topic: Is it possible to disable docking of wxAuiToolbar temporally?
Replies: 2
Views: 462

Re: Is it possible to disable docking of wxAuiToolbar temporally?

I want to disable the moving of the toolbar temporarily. Is this possible? You should be able to get the pane that corresponds to the toolbar from the AUI manager and change the properties so that it can't be docked, then update the AUI manager. And when you want it to be able to dock again enable ...
by gul_garak
Mon Dec 17, 2018 10:20 pm
Forum: Platform Related Issues
Topic: wxSplashScreen text + OSX
Replies: 2
Views: 1469

Re: wxSplashScreen text + OSX

I don't work under OSX, so these are just wild guesses: - try calling ::wxYield() after Refresh() - try putting the code that uses the wxSplashScreen into wxAppConsole::OnEventLoopEnter() instead of OnInit() I also did drawing tests directly to a splash window's paint DC but it doesn't do anything....
by gul_garak
Mon Dec 17, 2018 7:33 pm
Forum: Platform Related Issues
Topic: wxSplashScreen text + OSX
Replies: 2
Views: 1469

wxSplashScreen text + OSX

Hi, There is an existing topic on this, but it's a few years old so I didn't want to reply there. I'm able to dynamically update the bitmap of my splash screen similarly to how it's described in the topic. However, that seems to work only for Linux and Windows. Under OSX refresh/update doesn't cause...
by gul_garak
Wed Sep 05, 2018 6:25 pm
Forum: Compiler / Linking / IDE Related
Topic: String related slow with debugger attached
Replies: 7
Views: 1684

Re: String related slow with debugger attached

I found something that works around the issue: disabling the debug system heap. I think it doesn't affect our overall ability to debug our app so it solves this issue (I'll post again if I find any issues). http://preshing.com/20110717/the-windows-heap-is-slow-when-launched-from-the-debugger/ https:...
by gul_garak
Wed Sep 05, 2018 6:13 pm
Forum: Compiler / Linking / IDE Related
Topic: String related slow with debugger attached
Replies: 7
Views: 1684

Re: String related slow with debugger attached

Hi, Are you attaching the debugger to the running application or you are trying to start the debug build of the application? Is application MT? Does it have DLLs? Which build of wx do you use - static or dynamic? What SDK you are trying? Do you use C++11? Thank, you. Answers below. Thank you! 0. St...
by gul_garak
Wed Sep 05, 2018 6:07 pm
Forum: Compiler / Linking / IDE Related
Topic: String related slow with debugger attached
Replies: 7
Views: 1684

Re: String related slow with debugger attached

Do you see 100% cpu load (at least on one core)? Did you try profiling the app? Maybe you can see where it spends all the time. * I see a CPU spike, but not above 10%. * While the application writes the XML document it blocks and it seems to spend most of its time inside constructors for wxCharType...