Search found 466 matches
- Wed Sep 14, 2022 6:23 pm
- Forum: wxCode
- Topic: wxTableCtrl
- Replies: 6
- Views: 4485
Re: wxTableCtrl
I think most of the items from wxCode were not updated and the project was abandoned a few years ago.
- Wed Sep 14, 2022 5:43 pm
- Forum: C++ Development
- Topic: Processing events while waiting for thread to join
- Replies: 5
- Views: 662
Re: Processing events while waiting for thread to join
My question is, is there any way events can still be handled when using std::thread and join()? Unfortunately no. join is a blocking operation, so it will block processing of the event queue if called in the main thread. If you need to pass information from a secondary thread, you can use wxThreadE...
- Sun Sep 04, 2022 7:09 pm
- Forum: Compiler / Linking / IDE Related
- Topic: Using wxwidgets on VS Code over Linux
- Replies: 3
- Views: 5075
Re: Using wxwidgets on VS Code over Linux
Even the authors of VSCode say that it is intended to be a code editor and not a full featured IDE. The build system it includes is really only intended to build a single file. Trying to hack it to build a full project is not recommended. So if you want to use VSCode to build projects, it's best to ...
- Fri Aug 12, 2022 6:16 am
- Forum: Compiler / Linking / IDE Related
- Topic: Can't compile with Visual Studio 2022 using .lib
- Replies: 29
- Views: 7579
Re: Can't compile with Visual Studio 2022 using .lib
Yes. on windows, wxWebrequest uses schannel (windows' internal TLS library). If you build with CMake, you have the option to use your own curl instead.
Unless you have a very good reason for doing so, I wouldn't do that.
Unless you have a very good reason for doing so, I wouldn't do that.
- Sun Jul 24, 2022 2:32 am
- Forum: C++ Development
- Topic: The usage of DECLARE_DYNAMIC_CLASS like macro
- Replies: 7
- Views: 993
Re: The usage of DECLARE_DYNAMIC_CLASS like macro
Yeah. A plugin system is just something the wxWidgets framework can't do well. It's build around the event loop and it's really difficult (impossible?) to get that to work across a dynamically loaded class. Instead of having the plugin create a wxWindow, it might almost be better to send some kind o...
- Sat Jul 23, 2022 9:02 pm
- Forum: C++ Development
- Topic: The usage of DECLARE_DYNAMIC_CLASS like macro
- Replies: 7
- Views: 993
Re: The usage of DECLARE_DYNAMIC_CLASS like macro
Those macros register the class with the wxwidgets RTTI system. Remember wxWidgets is a really old library and that system was added before RTTI was available directly from the compiler. I won't pretend to know the details, but the wxWidgets RTTI system supplies more information than you can get fro...
- Fri Jul 08, 2022 1:33 pm
- Forum: C++ Development
- Topic: Implementing zooming and panning in an image
- Replies: 22
- Views: 1234
Re: Implementing zooming and panning in an image
Thanks. I don't have any thing else to add.
- Mon Apr 18, 2022 12:24 am
- Forum: Compiler / Linking / IDE Related
- Topic: Integrating wxWidgets, C++ and Eclipse
- Replies: 3
- Views: 476
Re: Integrating wxWidgets, C++ and Eclipse
I wrote a stack overflow answer on using wxWidgets with Eclipse a while ago.
- Fri Mar 18, 2022 5:40 pm
- Forum: Component Writing
- Topic: Doubts with custom angular gauge
- Replies: 3
- Views: 4447
Re: Doubts with custom angular gauge
I can't reproduce your problem on wxGTK, but based on past experience, problems like these are typically caused by residue from previous draw operations. To ensure that the dc is completely empty before drawing, try changing this: void AngularGauge::OnPaint(wxPaintEvent& event) { wxPaintDC dc(th...
- Sat Dec 18, 2021 5:16 am
- Forum: C++ Development
- Topic: How set fixed width font in wxPaintDC/wxClientDC
- Replies: 2
- Views: 285
Re: How set fixed width font in wxPaintDC/wxClientDC
Are you sure that's deprecated? This works for me:
I don't see any deprecation warnings with either 3.0 or 3.1
Code: Select all
wxFont font = dc.GetFont();
font.SetFamily(wxFONTFAMILY_TELETYPE);
dc.SetFont(font);
- Thu Dec 16, 2021 7:15 am
- Forum: C++ Development
- Topic: TextCtrl with clickable words
- Replies: 7
- Views: 644
Re: TextCtrl with clickable words
With wxStyledTextCtrl, you can set a style to be a hotspot with StyleSetHotSpot. Then when text with that style is clicked, an event with type wxEVT_STC_HOTSPOT_CLICK will be generated. You can handle the clicks in the handler for that event.
- Tue Nov 30, 2021 6:14 pm
- Forum: C++ Development
- Topic: Extend context menu of wxStyledTextCtrl
- Replies: 3
- Views: 643
Re: Extend context menu of wxStyledTextCtrl
I dont think there is anyway to modify the built in context menu, but you can call UsePopUp(wxSTC_POPUP_NEVER); and implement your own context menu.
- Fri Nov 12, 2021 4:44 pm
- Forum: C++ Development
- Topic: Reducing update/switch 'twitches'
- Replies: 3
- Views: 1241
Re: Reducing update/switch 'twitches'
Create a wxWindowUpdateLocker before beginning the reconfiguration. You can create the locker on the window that contains all of the items that will be updated or the main frame itself.
- Thu Oct 28, 2021 8:59 pm
- Forum: Compiler / Linking / IDE Related
- Topic: How to set up a panel/dialog as child for a frame with wxFormBuilder
- Replies: 2
- Views: 2791
Re: How to set up a panel/dialog as child for a frame with wxFormBuilder
To add a panel to a frame, you can use the panel on the containers tab. 1.png It's different from the panel on the forms tab and can be added to a frame. Note that you'll first need to set a sizer for the frame. (I know wxWidgets lets you add a panel directly to the frame without a sizer, but wxForm...
- Tue Oct 19, 2021 6:06 pm
- Forum: C++ Development
- Topic: How to setup wxGLContext properly?
- Replies: 25
- Views: 6975
Re: How to setup wxGLContext properly?
My guess was that a wxGLCanvas can not be set current if it is to small, but I was able to get both the context and GLEW to initialize with small sizes like 2x2 and even 0x0 on both windows and linux. So it doesn't seem like the size is the issue after all (although that may depend on the system and...