Search found 374 matches

by mael15
Fri Jul 12, 2019 1:47 pm
Forum: C++ Development
Topic: show/hide controls in wxScrolledWindow
Replies: 3
Views: 85

Re: show/hide controls in wxScrolledWindow

Yes it does! Can I trigger this somehow?
by mael15
Fri Jul 12, 2019 12:14 pm
Forum: C++ Development
Topic: show/hide controls in wxScrolledWindow
Replies: 3
Views: 85

show/hide controls in wxScrolledWindow

Very weird problem, hard to describe... the sizer of a wxScrolledWindow contains a LOT of controls that are grouped in their own subsizers. I Hide() and Show() these subsizers according to what controls should be shown. Now, the bigger of two sizers is only painted as big as the smaller one is. What...
by mael15
Sat Jul 06, 2019 10:44 am
Forum: C++ Development
Topic: thread crashes in wxGDIPlusContext::DrawLines
Replies: 12
Views: 236

Re: thread crashes in wxGDIPlusContext::DrawLines

Problem solved by using good old wxMemoryDC instead of wxGraphicsContext. Thanx for your thoughts, they helped me figuring it out!
by mael15
Fri Jul 05, 2019 11:55 am
Forum: C++ Development
Topic: thread crashes in wxGDIPlusContext::DrawLines
Replies: 12
Views: 236

Re: thread crashes in wxGDIPlusContext::DrawLines

I cannot remember needing anti-alias, so I will try drawing without wxGraphicsContext, also try the 2DRenderer you mentioned.
One big difference is using wxPoint in the "normal" drawing and wxPoint2DDouble in the problematic one.
by mael15
Fri Jul 05, 2019 8:45 am
Forum: C++ Development
Topic: thread crashes in wxGDIPlusContext::DrawLines
Replies: 12
Views: 236

Re: thread crashes in wxGDIPlusContext::DrawLines

Thank you for your feedback! Apparently you were using the default GDIPlus backend. Try the Direct2D one. Maybe it's faster. -> wxGraphicsRenderer::GetDirect2DRenderer() I could not find this, could you post a link to the documentation please? I actually do not remember why I used a wxGraphicsContex...
by mael15
Thu Jul 04, 2019 4:27 pm
Forum: C++ Development
Topic: thread crashes in wxGDIPlusContext::DrawLines
Replies: 12
Views: 236

Re: thread crashes in wxGDIPlusContext::DrawLines

i have watched the windows 10 ressource monitor, it seems to freeze when when the amount of "zugesichert" ram exceeds about 60000 kB. does that make sense?!

EDIT: when i wrote this the drawing finished after one minute, so it probably is not a freeze but a very slow drawing.
by mael15
Thu Jul 04, 2019 4:19 pm
Forum: C++ Development
Topic: thread crashes in wxGDIPlusContext::DrawLines
Replies: 12
Views: 236

Re: thread crashes in wxGDIPlusContext::DrawLines

What's the size of the image and the range of coordinates? image size 724x724, the extreme values of the coodinates are: x: 99,26|477,08 y:-153,42|1310,00 Does it work if you replace DrawLines with StrokeLines? It does not work either. Have you tried reducing the number of points? Yes! It actually ...
by mael15
Thu Jul 04, 2019 2:37 pm
Forum: C++ Development
Topic: thread crashes in wxGDIPlusContext::DrawLines
Replies: 12
Views: 236

Re: thread crashes in wxGDIPlusContext::DrawLines

Are you saying this code runs in a secondary thread? If yes, try the same code from the main thread. If it works there, you have your answer. If it crashes there too, try decreasing the number of points. Although i couldn't find any documentation that mentions a limit like that in GDI+, i wouldn't ...
by mael15
Thu Jul 04, 2019 12:52 pm
Forum: C++ Development
Topic: thread crashes in wxGDIPlusContext::DrawLines
Replies: 12
Views: 236

thread crashes in wxGDIPlusContext::DrawLines

I have one of these crashes in a thread with none of the usual debug info. How can I get to the bottom of this? this is the call stack: [Externer Code] > wxmsw31ud_core_vc_x64_custom.dll!GdipDrawLines(Gdiplus::GpGraphics * graphics, Gdiplus::GpPen * pen, const Gdiplus::PointF * points, int count) Ze...
by mael15
Thu Jun 20, 2019 12:34 pm
Forum: C++ Development
Topic: wxCursor return to default causes flickering
Replies: 1
Views: 79

wxCursor return to default causes flickering

I set a wxCursor using wxSetCursor in an wxEVT_MOTION event. After less than 0.5s the newly set cursor is replaced by the default cursor, so the cursor is flickering when I move the mouse. I see this very clearly when i move the mouse only one pixel. I looked for some other wxSetCursor calls in i.e....
by mael15
Tue May 28, 2019 7:11 am
Forum: C++ Development
Topic: wxGrid wxGridCellNumberEditor wxSP_WRAP
Replies: 4
Views: 184

Re: wxGrid wxGridCellNumberEditor wxSP_WRAP

Try wxEVT_TEXT_ENTER instead of wxEVT_COMMAND_ENTER Did not work, seems to be a deeper problem with wxGrid? Like in the other post https://forums.wxwidgets.org/viewtopic.php?f=1&t=45888 where I failed with the tab key? It is a problem to me because I consider it standard behaviour, the user expects...
by mael15
Mon May 27, 2019 2:51 pm
Forum: C++ Development
Topic: wxGrid wxGridCellNumberEditor wxSP_WRAP
Replies: 4
Views: 184

Re: wxGrid wxGridCellNumberEditor wxSP_WRAP

This has nothing to do with wrapping, but is related to the same example. It try and fail at catching the event of the user pressing enter. Why does this not work?!? #pragma once #include <wx/frame.h> #include <wx/app.h> #include <wx/grid.h> #include "wx/spinctrl.h" class spinNumberEditor : public w...
by mael15
Wed May 22, 2019 12:48 pm
Forum: C++ Development
Topic: wxGrid wxGridCellNumberEditor wxSP_WRAP
Replies: 4
Views: 184

wxGrid wxGridCellNumberEditor wxSP_WRAP

Devil seems to be in the details with wxGrid. I have a column displaying an angle, so min == 0 and max == 359 and i want the wxGridCellNumberEditorto wrap. So when the wxSpinCtrl shows 0 and the arrow down is pressed, the value should change to 359. I tried these thing unsuccessfully: - Spin()->SetE...
by mael15
Tue May 21, 2019 8:14 am
Forum: C++ Development
Topic: wxGrid open cell editor after tab
Replies: 14
Views: 374

Re: wxGrid open cell editor after tab

Unfortunately i didn't have enough time tonight to dig deep into it. But i traced through the code and the wxChoice editor definitely gets created and shown, but it closes again very quickly. I think even with CallAfter, the call to EnableCellEditControl() comes too early in this case. The next ste...
by mael15
Mon May 20, 2019 5:08 pm
Forum: C++ Development
Topic: wxGrid open cell editor after tab
Replies: 14
Views: 374

Re: wxGrid open cell editor after tab

Can you strip together a running sample? Yes, at least the tab behaviour can be seen, never mind the not working minus button at the end: #pragma once #include <wx/frame.h> #include <wx/app.h> #include <wx/grid.h> class MyGridCellButtonRenderer : public wxGridCellRenderer { public: MyGridCellButton...