Search found 1178 matches

by T-Rex
Wed Aug 28, 2019 1:13 pm
Forum: C++ Development
Topic: How to use Widgets from a dll
Replies: 6
Views: 130

Re: How to use Widgets from a dll

There is sample project which shows how to use wxWidgets controls from DLL. You have to build DLL version of wxWidgets (Debug DLL and Release DLL) and use the same compiler settings (see C++ -> Code Generation -> Runtime Library parameter in wxWidgets projects settings). In fact, CMake should put th...
by T-Rex
Tue Aug 27, 2019 4:30 pm
Forum: C++ Development
Topic: Create a window that lets the input events fall through
Replies: 4
Views: 111

Re: Create a window that lets the input events fall through

If you target WIndows platform only, then what you need is probably DirectX overlay. And this comes out of scope of wxWidgets. There are some existing libs for this: https://github.com/michel-pi/GameOverlay.Net https://github.com/lolp1/Overlay.NET https://www.unknowncheats.me/forum/c-and-c-/84234-ex...
by T-Rex
Mon Aug 05, 2019 2:51 pm
Forum: C++ Development
Topic: Restrict mouse pointer to area of GLCanvas
Replies: 2
Views: 83

Re: Restrict mouse pointer to area of GLCanvas

There are dedicated platform-specific functions for this:
https://docs.microsoft.com/en-us/window ... clipcursor
https://www.x.org/archive/X11R6.8.2/doc ... ter.3.html (+confine_in)

You could create a wrapper class with #ifdef'ed logic for this.
by T-Rex
Mon Aug 05, 2019 10:30 am
Forum: C++ Development
Topic: [wxMSW[3.0.3] Convert plain text to html text
Replies: 4
Views: 106

Re: [wxMSW[3.0.3] Convert plain text to html text

You probably could use libhtmlcxx and HTML::decode_entities function.
by T-Rex
Thu Jul 25, 2019 3:06 pm
Forum: C++ Development
Topic: Combining title bar and menu bar into one (on Windows)?
Replies: 6
Views: 164

Re: Combining title bar and menu bar into one (on Windows)?

The feature you asking about is very platform-specific and does not come out of the box with wxWidgets. You probably will need to implement the custom platform-specific solution using native APIs.

Another example here.
by T-Rex
Thu May 23, 2019 9:59 am
Forum: C++ Development
Topic: Window layout question
Replies: 5
Views: 209

Re: Window layout question

I think that it should be possible with wxAUI art classes:
https://docs.wxwidgets.org/3.0/classwx_ ... r_art.html
https://docs.wxwidgets.org/3.0/classwx_aui_tab_art.html

But anyway will take some time to implement.
by T-Rex
Thu Apr 25, 2019 11:36 am
Forum: C++ Development
Topic: Issue in Capturing Screenshot using wxGraphicsContext
Replies: 17
Views: 458

Re: Issue in Capturing Screenshot using wxGraphicsContext

Post some source code maybe? So that we could see whether there is a problem in screen capturing logic.
by T-Rex
Mon Apr 15, 2019 12:49 pm
Forum: C++ Development
Topic: Memory data sharing between two applications
Replies: 5
Views: 241

Re: Memory data sharing between two applications

You could check wxConnection and related classes and their implementation and implement something similar at Qt app's side (in general, you will need to put the header with signature at the beginning of the message).
by T-Rex
Wed Mar 20, 2019 12:32 pm
Forum: C++ Development
Topic: Writing to binary file crashes application
Replies: 6
Views: 205

Re: Writing to binary file crashes application

You probably should call Flush() and Close() for output file and Close() for input file instead of calling the descructor manually. I dont understand this. I have 2 wxFileDialog components which I use ShowModal() and GetPath(). I didn't explicitly define any global variables for them. Your file dial...
by T-Rex
Wed Dec 26, 2018 3:51 pm
Forum: Compiler / Linking / IDE Related
Topic: Compile WxWidgets for the BeagleBone Black
Replies: 2
Views: 226

Re: Compile WxWidgets for the BeagleBone Black

Your question is too general. Most likely you will not receive the complete answer. Would be better if you try to cross-compile by yourself and then came back here with specific problem. There is a Wiki guide for cross-compilation. If you have the toolkit for compilation of ARM apps on your desktop ...
by T-Rex
Fri Nov 30, 2018 9:24 am
Forum: C++ Development
Topic: wxAuiNotebook: How to auto scroll to last opened one
Replies: 3
Views: 429

Re: wxAuiNotebook: How to auto scroll to last opened one

Pretty sure that the code below can be improved much, but looks like it does what you want. wxAuiTabCtrl * GetTabCtrl(wxWindow * parent) { for (auto node = parent->GetChildren().GetFirst(); node; node = node->GetNext()) { if (!node->GetData()) continue; if (node->GetData()->IsKindOf(CLASSINFO(wxAuiT...
by T-Rex
Mon Nov 19, 2018 9:59 am
Forum: C++ Development
Topic: secondary thread accessing gui functions
Replies: 2
Views: 136

Re: secondary thread accessing gui functions

Since reading from wxListCtrl means also usage of GUI-related functionality, it's also not recommended because you may get into race conditions while accessing the UI control from both threads (UI and worker). If you want to send some data to the worker thread, you could probably use wxMessageQueue ...
by T-Rex
Sat Nov 17, 2018 2:04 pm
Forum: C++ Development
Topic: about wxVector
Replies: 3
Views: 666

Re: about wxVector

This is because it's not permitted to erase the iterator inside the loop if this iterator is used as loop's parameter. You should iterate by index then or re-assign the value of `i` while erasing . Just Google for the relevant example. https://stackoverflow.com/questions/596162/can-you-remove-elemen...
by T-Rex
Thu Nov 01, 2018 2:35 pm
Forum: C++ Development
Topic: Internationalisation
Replies: 22
Views: 1309

Re: Internationalisation

https://wxwidgets.info/wxtranslation/

It's for older versions of wxWidgets and may require soma minor changes in the source code, but gives the idea of how to make .mo files work in your app.
by T-Rex
Sat Sep 22, 2018 10:46 am
Forum: General Development
Topic: Tool to find memory leaks
Replies: 18
Views: 1505

Re: Tool to find memory leaks

You should be able to download the Debug Symbols for Windows DLLs from within Visual Studio https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-download-symbols https://docs.microsoft.com/en-us/windows/desktop/dxtecharts/debugging-with-symbols#using-the-microsoft-symbol-serve...