Search found 14854 matches

by doublemax
Fri Jul 03, 2020 1:58 pm
Forum: C++ Development
Topic: wxSpinCtrlDouble not wrapping correctly?
Replies: 6
Views: 131

Re: wxSpinCtrlDouble not wrapping correctly?

What happens when you set the max to 359.91 (or something similar)?
by doublemax
Thu Jul 02, 2020 6:13 pm
Forum: Database Related
Topic: Problems building wxWidgets 3.0.5 and sqlite 3.31 (amalgamation)
Replies: 25
Views: 192

Re: Problems building wxWidgets 3.0.5 and sqlite 3.31 (amalgamation)

Sorry, i don't use CB or MinGW, i have no idea what's going on there.

I looks as if sqlite.c is compiled with different compiler settings as the rest.
by doublemax
Thu Jul 02, 2020 5:45 pm
Forum: Database Related
Topic: Problems building wxWidgets 3.0.5 and sqlite 3.31 (amalgamation)
Replies: 25
Views: 192

Re: Problems building wxWidgets 3.0.5 and sqlite 3.31 (amalgamation)

Please explain what exactly you're doing. wxWidgets doesn't use sqlite and it doesn't know anything about it. There can't be any reference to sqlite in the wx precompiled headers. Let's suppose you're starting with the "minimal" sample and wanted to use sqlite in it. Then you would just include "sql...
by doublemax
Thu Jul 02, 2020 4:58 pm
Forum: Platform Related Issues
Topic: Invoke Windows touch keyboard?
Replies: 2
Views: 43

Re: Invoke Windows touch keyboard?

Doesn't Windows 10 in tablet mode open the onscreen keyboard automatically when a text field gets focus?

If it doesn't, all posts i found about this seem to indicate that there is no "offical" API call to do it. They just invoke "osk.exe" in the Windows/system32 directory.
by doublemax
Thu Jul 02, 2020 4:54 pm
Forum: Database Related
Topic: Problems building wxWidgets 3.0.5 and sqlite 3.31 (amalgamation)
Replies: 25
Views: 192

Re: Problems building wxWidgets 3.0.5 and sqlite 3.31 (amalgamation)

Play around with order of include files. Try including sqlite.h after all wx headers.
by doublemax
Thu Jul 02, 2020 10:05 am
Forum: C++ Development
Topic: chagning colour on an array of wxButtons
Replies: 1
Views: 44

Re: chagning colour on an array of wxButtons

Try SetBackgroundColour instead of SetForegroundColour FWIW, i think the inner part would be more readable like this: for (int x = 0; x < nfieldwidth; x++) { for (int y = 0; y < nfieldheght; y++) { int index = y * nfieldheght + x wxButton *button= btn[index] = new wxButton(this, 1000 + index); grid-...
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: 54

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: 12
Views: 678

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: 8
Views: 643

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: 36

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: 93

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: 88

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: 88

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: 93

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: 93

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...