Search found 14878 matches

by doublemax
Wed Jul 01, 2020 7:58 pm
Forum: C++ Development
Topic: Does anyone have experience overlaying text onto a wxGlCanvas?
Replies: 1
Views: 73

Re: Does anyone have experience overlaying text onto a wxGlCanvas?

It's pretty old, but maybe this still works:
viewtopic.php?f=20&t=22453
(Make sure to get the latest version further down on that page).
by doublemax
Wed Jul 01, 2020 4:15 pm
Forum: Platform Related Issues
Topic: size==1 Too many writes to wake-up pipe?
Replies: 17
Views: 830

Re: size==1 Too many writes to wake-up pipe?

the assertion error come from this code line: IMPLEMENT_APP(DevCollectorApp); That usually means that the crash happens before wxApp::OnInit() is called. Can you confirm that? If yes, check if you have any global variables that use wxWidgets classes. These are constructed before wxWidgets itself is...
by doublemax
Wed Jul 01, 2020 5:12 am
Forum: Platform Related Issues
Topic: wxMenu on touch screens
Replies: 12
Views: 802

Re: wxMenu on touch screens

Can you build and run the "minimal" sample that comes with wxWidgets? If it happens there, too, please open a bug report at: http://trac.wxwidgets.org Please provide the correct wxWidgets version (5.15.0 can't be true as the latest version is 3.1.4), if it was built using GTK2 or GTK3, and the exact...
by doublemax
Tue Jun 30, 2020 10:08 pm
Forum: C++ Development
Topic: Device Context lifetime and typical usage.
Replies: 1
Views: 45

Re: Device Context lifetime and typical usage.

Unless you use a special wxDC to render into a wxBitmap (wxMemoryDC), nothing you draw is stored anywhere. In a paint event handler you need to draw everything you want to display. In your case you'd add the mouse coordinates to a list of points, and then in the paint event handler you iterate over ...
by doublemax
Tue Jun 30, 2020 9:17 pm
Forum: C++ Development
Topic: Redrawing seems to affect the frequency of mouse events
Replies: 6
Views: 121

Re: Redrawing seems to affect the frequency of mouse events

I don't think it's a wxWidgets problem and i don't know any workaround. Your paint event handler (any event handler in fact) just must finish as quickly as possible. You say you were drawing an SVG in the paint event handler. Assuming the SVG doesn't change you should pre-render it in a bitmap and o...
by doublemax
Tue Jun 30, 2020 5:25 am
Forum: C++ Development
Topic: wxDataView tree view not showing any tree nodes
Replies: 4
Views: 112

Re: wxDataView tree view not showing any tree nodes

I think wxDATAVIEW_COL_HIDDEN for the first column is the issue. Remove this or expand the root item programmatically.
by doublemax
Mon Jun 29, 2020 9:15 pm
Forum: C++ Development
Topic: wxDataView tree view not showing any tree nodes
Replies: 4
Views: 112

Re: wxDataView tree view not showing any tree nodes

I can only tell you why it crashes: Each column owns its renderer, so you can't pass the same renderer pointer to multiple columns. As for the content not showing up, it's probably something trivial too, but it's just too much code to read :) I would suggest to put debug output into methods like IsC...
by doublemax
Mon Jun 29, 2020 8:45 pm
Forum: C++ Development
Topic: Redrawing seems to affect the frequency of mouse events
Replies: 6
Views: 121

Re: Redrawing seems to affect the frequency of mouse events

Is there a resource where I can read up on how exactly the event system works? There is an overview, but it doesn't go as low-level as you probably expect: https://docs.wxwidgets.org/trunk/overview_events.html The important bits for your case are: - the wx event system always wraps the native event...
by doublemax
Mon Jun 29, 2020 6:45 pm
Forum: C++ Development
Topic: Redrawing seems to affect the frequency of mouse events
Replies: 6
Views: 121

Re: Redrawing seems to affect the frequency of mouse events

What/how much are you actually drawing in your paint event handler? This might be one of the few cases where it might be necessary to draw directly into the wxClientDC of the window instead of forcing a complete redraw. The "mdi" sample has some code that shows how to do that. Be aware that you stil...
by doublemax
Mon Jun 29, 2020 6:38 pm
Forum: Compiler / Linking / IDE Related
Topic: Creating wxWidgets 3.1.3 project in Code::Blocks: No such file or directory
Replies: 32
Views: 589

Re: Creating wxWidgets 3.1.3 project in Code::Blocks: No such file or directory

All errors are still "No such file or directory". Just go through the project settings manually and check the include path(s). There must be a mistake somewhere. And then also check if the header files are actually there.
by doublemax
Mon Jun 29, 2020 4:16 pm
Forum: Platform Related Issues
Topic: Events not triggered for UI loaded from DLL. Windows only.
Replies: 3
Views: 89

Re: Events not triggered for UI loaded from DLL. Windows only.

Are you using dynamic linking (=using DLLs) of wxWidgets under Windows, too? That's mandatory when both the main application and any DLL use wxWidgets.
by doublemax
Mon Jun 29, 2020 4:07 pm
Forum: C++ Development
Topic: do preview in wxFileDialog
Replies: 2
Views: 86

Re: do preview in wxFileDialog

You can add a custom control to a wxFileDialog:
https://docs.wxwidgets.org/trunk/classw ... 7c6334b527

Check the "dialogs" sample that comes with wxWidgets for an example.
by doublemax
Sun Jun 28, 2020 7:42 pm
Forum: Compiler / Linking / IDE Related
Topic: Creating wxWidgets 3.1.3 project in Code::Blocks: No such file or directory
Replies: 32
Views: 589

Re: Creating wxWidgets 3.1.3 project in Code::Blocks: No such file or directory

Since you are the moderator - could make a recent post from PB about C::B sticky, so that it can be easily referenced and found by people. We currently have 3 CB tutorials made by users on this forum. As i didn't want to have 3 sticky threads and i also didn't want to favor one of them, they are al...
by doublemax
Sun Jun 28, 2020 6:11 pm
Forum: Compiler / Linking / IDE Related
Topic: Creating wxWidgets 3.1.3 project in Code::Blocks: No such file or directory
Replies: 32
Views: 589

Re: Creating wxWidgets 3.1.3 project in Code::Blocks: No such file or directory

I am trying compile wxWidgets project in Code::Blocks I'm not sure if this is just bad wording, but you can't build wxWidgets itself in Code:Blocks. Before you get into CB, you need to build wxWidgets itself from the command line, instructions for that should be in the CB tutorials you mentioned. T...
by doublemax
Sun Jun 28, 2020 11:05 am
Forum: C++ Development
Topic: cannot catch key event in wxSpinCtrlDouble
Replies: 2
Views: 75

Re: cannot catch key event in wxSpinCtrlDouble

Try catching wxEVT_CHAR