On Sat, 9 Dec 2017 09:13:31 -0600 Gerald Brandt wrote:
GB> I have some pretty straight forward code that writes text. I decided
GB> today to do a quick conversion from a wxPaintDC to a wxGraphicsContext.
GB> This looks pretty straight forward to me, but nothing get displayed.
GB>
GB> Any ideas?
Did you check that wxGraphicsContext creation succeeded? It should have
had, of course, but if it fails, this would explain why nothing is drawn.
You could also try a more minimal modification first, by replacing
wxPaintDC dc(this) ;
line with
wxPaintDC dcPaint(this);
wxGDCC dc(dcPaint);
and not changing anything else and seeing if this works.
Finally, it's always a good idea to test a sample when you run into some
problem, so I'd also build samples/drawing and check that using wxGC works
in it. If it doesn't, it definitely means some problem with your library
build...
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/