Search found 827 matches
- Wed Jun 14, 2023 7:39 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Entry Point Not Found
- Replies: 2
- Views: 582
Re: Entry Point Not Found
Use either VS or GCC, but do not mix both. All wx libs and your app must be compiled with the same compiler, and with the same flags.
- Thu May 25, 2023 7:34 pm
- Forum: C++ Development
- Topic: wxAffineMatrix2D and wxGraphicsMatrix
- Replies: 10
- Views: 616
Re: wxAffineMatrix2D and wxGraphicsMatrix
Matrix stuff is hard, but "the right thing to do" when you deal with graphics. And you must deal also with vectors and their products. Because translation is not an affine transformation, there's no 3D-matrix to represent it, but you can by using 4D-matrix. If you stick to 2D then you need...
- Wed May 17, 2023 6:30 pm
- Forum: Open Discussion
- Topic: Chat AI
- Replies: 5
- Views: 2840
Re: Chat AI
Please, see any AI as a tool that sometimes gives you usefull advises, while many others it's completely wrong. Or worst: Seems right, but it's wrong.
Take it as a "first approach" and you use your own rationale. Official docs and samples are right. AI may be not.
Take it as a "first approach" and you use your own rationale. Official docs and samples are right. AI may be not.
- Wed May 17, 2023 6:22 pm
- Forum: C++ Development
- Topic: Destroying items of pointer type
- Replies: 12
- Views: 911
Re: Destroying items of pointer type
Child windows are destroyed automatically by their parents. https://docs.wxwidgets.org/trunk/overview_windowdeletion.html If you need to destroy a control, you may use Destroy(). https://docs.wxwidgets.org/trunk/classwx_window.html#a6bf0c5be864544d9ce0560087667b7fc Storing the pointers to controls i...
- Sun May 14, 2023 5:24 pm
- Forum: Platform Related Issues
- Topic: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio
- Replies: 8
- Views: 2613
Re: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio
EGL is used in modern Linux distros. I don't know in Windows and OSX, likely not, or just a bunch of people use it. So adding EGL-only features to wx is not the goal of wx. Granted, sometimes a new OS-only feature is added and some time later implemented in the rest os OSs. But this is rare. Prepari...
- Sat May 13, 2023 5:14 pm
- Forum: C++ Development
- Topic: wxGridCellFloatEditor decimal places
- Replies: 2
- Views: 287
Re: wxGridCellFloatEditor decimal places
What if you use
Parameters for wxGridCellFloatEditor taken from wxGridCellFloatEditor docs
Code: Select all
floatEditor->SetEditor(new wxGridCellFloatEditor(-1, 12));
- Thu May 11, 2023 6:08 pm
- Forum: Platform Related Issues
- Topic: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio
- Replies: 8
- Views: 2613
Re: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio
One of the main goals of wxWidgets is to show the same behaviour in all OSs. This different behaviour you find may call wx' developers attention. I advice to build a minimal app that reproduces your issue. Then, sing in and open a Pull Request at wxWidgets GitHub where you explain your issue and add...
- Thu May 11, 2023 5:29 pm
- Forum: Platform Related Issues
- Topic: Opengl on Mac
- Replies: 5
- Views: 1992
Re: Opengl on Mac
So your Mac OSX gives OGL 4.1. Good. ====>>> But then your shaders must use the same version, not 430: "#version 410 \n" OGL versions beyond 4.1 introduce new features that you don't need if you're starting with OGL. In other words, ask for 4.1 and not 4.6. It doesn't matter in OSX (in you...
- Wed May 10, 2023 5:49 pm
- Forum: Platform Related Issues
- Topic: Opengl on Mac
- Replies: 5
- Views: 1992
Re: Opengl on Mac
Yes, you can make modern OGL code for OSX. But... Apple stopped supporting OGL, and marked it as "deprecated". The lastest version they provide is OGL 4.1. Now they use their Metal API. You say you only have OGL 2.1. That's quite old. Review your drivers, OGL 3.2 should be available in all...
- Mon May 08, 2023 7:25 pm
- Forum: Platform Related Issues
- Topic: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio
- Replies: 8
- Views: 2613
Re: wxMenuBar blocks events / wxWidgets 3.2.0, visual studio
Events handling, specially "paint-event", are different in Windows and Linux. If you use " while(1) send-a-command-that-asks-for-painting" a lot of paint events are sent to the OS, which reacts in its own way. Windows "flocks" similar paint-events, Linux uses an interna...
- Fri May 05, 2023 6:25 pm
- Forum: C++ Development
- Topic: How to see what's being drawn while it is being drawn?
- Replies: 6
- Views: 481
Re: How to see what's being drawn while it is being drawn?
The thing is that likely you can't know in advance when a new pixel is ready to be drawn. It may depend on the hardware and the number of calculations for that specific pixel. What I'd do: 1) Do calculations in a second, working, thread. 2) When the pixel is ready, set a flag (protect it with a mute...
- Mon Apr 10, 2023 7:01 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Apps need many dlls to run on different computers
- Replies: 16
- Views: 1432
Re: Apps need many dlls to run on different computers
I'll try to sumarize your doubts. If you build wx and your app with SHARED=1 then your exe will require one or several wx' dll files, depending on MONOLITHIC parameter. Using SHARED=0 will put wx code inside your exe. AS PB told, MSVC can add some libs into your app ("static linkimg") MinG...
- Fri Mar 10, 2023 8:09 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Load GUI libraries at runtime (but only if needed)
- Replies: 53
- Views: 5339
Re: Load GUI libraries at runtime (but only if needed)
If I understand you well, you link with wx statically, and load all required GUI libs (if any) dynamically at run time, right? Let's see this case: You told wx to use GTK+2, just because lower version likely can be found everywhere (or some other reason). Now you run your app in a radical distro tha...
- Tue Mar 07, 2023 7:26 pm
- Forum: C++ Development
- Topic: FYI - rough start with GLX and libepoxy
- Replies: 3
- Views: 441
Re: FYI - rough start with GLX and libepoxy
The case of epoxy + wx is not issue-free. In Linux (and perhaps also in MSW) is very typical that both GLX and EGL are installed concurrently. Only one can be used at run-time to retrieve/call contex-functions and the function to retrieve pointers for modern OGL commands. Epoxy knows about it. And w...
- Fri Mar 03, 2023 6:21 pm
- Forum: C++ Development
- Topic: Overlapping Windows
- Replies: 23
- Views: 1330
Re: Overlapping Windows
Take a look at wxOverlay https://docs.wxwidgets.org/trunk/classwx_overlay.html
You can see an example at samples/drawing
If you like it, I advice to use current git master versioin (tagged as 3.3), as it has been improved for MSWindows.
You can see an example at samples/drawing
If you like it, I advice to use current git master versioin (tagged as 3.3), as it has been improved for MSWindows.