Search found 2918 matches
- Fri Apr 09, 2021 8:20 pm
- Forum: C++ Development
- Topic: Using Matplotlib with wxWidgets C++
- Replies: 14
- Views: 261
Re: Using Matplotlib with wxWidgets C++
I meant changing the variable type from int to wxBitmapType for type in the definition and declaration of mpWindow::SaveScreenshot(). MP1 sample also needs the same for fileType in MyFrame::OnSaveScreenshot(). Also one needs to remove "::" prefixing wxLogError() calls, in wxWidgets 3.0+ wxLog*() are...
- Fri Apr 09, 2021 6:57 pm
- Forum: C++ Development
- Topic: Using Matplotlib with wxWidgets C++
- Replies: 14
- Views: 261
Re: Using Matplotlib with wxWidgets C++
Please take a look at the edit in my previous post describing how I made v0.1.2 from SourceForge build with wxWidgets 3.1.5 in about two minutes. Those errors you get are for the issues I fixed. Actually, don't. I have just tried building the trunk version from SourceForge and it builds out of the b...
- Fri Apr 09, 2021 6:30 pm
- Forum: C++ Development
- Topic: Using Matplotlib with wxWidgets C++
- Replies: 14
- Views: 261
Re: Using Matplotlib with wxWidgets C++
(I know nothing about wxMathPlot) What exactly is the issue with wxMathPlot and recent wxWidgets versions? I have just tried to find the version on GitHub with most recent commit, ended with this: https://github.com/mkarmona/wxMathPlot I could build the library as well as build and run samples just ...
- Fri Apr 09, 2021 3:48 pm
- Forum: C++ Development
- Topic: How do I know which event type to use?
- Replies: 2
- Views: 40
Re: How do I know which event type to use?
You know you are interested in an event generated by a wxTextCtrl, so you go to its docs: https://docs.wxwidgets.org/trunk/classwx_text_ctrl.html There is a section named "Events emitted by this class" and looking at the four events listed, it is pretty clear that wxEVT_TEXT is the one. If you searc...
- Thu Apr 08, 2021 10:18 am
- Forum: Platform Related Issues
- Topic: Load resources such as images and icons in my .dll project
- Replies: 10
- Views: 165
Re: Load resources such as images and icons in my .dll project
One more thing is there any link or wiki source to adding resources to visual studio project when making a .dll I do not think that the procedure is different from doing that for an executable: Do you have a reason to believe otherwise? Moreover, adding the resources is not an issue here, is it? Yo...
- Thu Apr 08, 2021 6:18 am
- Forum: Platform Related Issues
- Topic: Load resources such as images and icons in my .dll project
- Replies: 10
- Views: 165
Re: Load resources such as images and icons in my .dll project
If it is what I suspect (i.e., wrong HINSTANCE used), the only workarounds when using Windows resources are those two I mentioned before. Of course, one still use Win32 API directly, using the DLL's HINSTANCE. I would ask in the wx-users what is the optimal solution, as it seems this scenario should...
- Wed Apr 07, 2021 12:50 pm
- Forum: Platform Related Issues
- Topic: Load resources such as images and icons in my .dll project
- Replies: 10
- Views: 165
Re: Load resources such as images and icons in my .dll project
1. Are the resources in the DLL? You should be able to include them in the same way you do for an executable. 2. Assuming they are there, AFAICT, loading an icon from uses wxGetInstance(): https://github.com/wxWidgets/wxWidgets/blob/master/src/msw/gdiimage.cpp#L534 Perhaps the instance returned by w...
- Mon Apr 05, 2021 8:14 am
- Forum: Compiler / Linking / IDE Related
- Topic: Setup.h is not found (VS2019)
- Replies: 1
- Views: 106
Re: Setup.h is not found (VS2019)
Assuming you are trying to build your application and now wxWidgets itself? Is the file there, in other words did you build wxWidgets successfully in 64-bit static debug configuration? How did you set up your project? There are at least three ways to do that with MSVS but basically: did you set the ...
- Fri Apr 02, 2021 2:07 pm
- Forum: C++ Development
- Topic: wxListview header obscures first row when using wxNotebook
- Replies: 12
- Views: 387
Re: wxListview header obscures first row when using wxNotebook
I know nothing about Linux but I cannot reproduce the issue even when setting the listview size to (1024,900) on Ubuntu 20.04 under VirtualBox with wxWidgets 3.1.4 built for GTK3 (3.24.20): gtk-notebook-listview.png even when I also get those gtk_box_gadget_distribute asserts. Are you building for G...
- Wed Mar 31, 2021 3:28 pm
- Forum: C++ Development
- Topic: Some questions about wxStopWatch
- Replies: 4
- Views: 160
Re: Some questions about wxStopWatch
You need to ask the developers in the wx-users mailing list.
But they may suggest to use the C++11 chrono instead. wxStopWatch may be one of those classes introduced back when the GUI libraries tried (and often had to) be an all-purpose Swiss army knife.
But they may suggest to use the C++11 chrono instead. wxStopWatch may be one of those classes introduced back when the GUI libraries tried (and often had to) be an all-purpose Swiss army knife.
- Wed Mar 31, 2021 3:12 pm
- Forum: Compiler / Linking / IDE Related
- Topic: wx-config for Windows 64-bit MinGW
- Replies: 2
- Views: 139
Re: wx-config for Windows 64-bit MinGW
... I realised that I most likely needed to include EVERY single one individually, which I refuse to do. Seems silly to me. Adding the libraries must take less than 2 minutes, assuming your IDE is worth anything (and it is trivial to copy&paste to a makefile). You can also create a template project...
- Wed Mar 31, 2021 5:29 am
- Forum: C++ Development
- Topic: wxListview header obscures first row when using wxNotebook
- Replies: 12
- Views: 387
Re: wxListview header obscures first row when using wxNotebook
You did not provide basic information such as platform or wxWidgets version. I cannot reproduce the behaviour on Windows 10 with wxWidgets master: notebook+listctrl.png #include <wx/wx.h> #include <wx/listctrl.h> #include <wx/notebook.h> class MyApp : public wxApp { public: bool OnInit() override { ...
- Tue Mar 30, 2021 4:26 pm
- Forum: Platform Related Issues
- Topic: How to use task dialogs on Windows
- Replies: 1
- Views: 105
Re: How to use task dialogs on Windows
Did you look into https://docs.wxwidgets.org/trunk/classwx_message_dialog.html and https://docs.wxwidgets.org/trunk/classwx_rich_message_dialog.html They do not offer all features of task dialogs but I think that is as close as you get to a task dialog in wxWidgets. You can see both in action in the...
- Mon Mar 29, 2021 6:49 am
- Forum: C++ Development
- Topic: Monitor a directory for file changes.
- Replies: 3
- Views: 128
Re: Monitor a directory for file changes.
I think you misunderstood the docs. It just needs the event loop running, which means it cannot be used in a console application without one. But there are no special requirements otherwise.
- Sun Mar 28, 2021 9:13 pm
- Forum: C++ Development
- Topic: Monitor a directory for file changes.
- Replies: 3
- Views: 128
Re: Monitor a directory for file changes.
https://docs.wxwidgets.org/trunk/classw ... tcher.html
You can see it in action with fswatcher sample.
You can see it in action with fswatcher sample.