On Sunday, 8 December 2013 at 09:17:37 UTC, Marco Leise wrote:

Maybe it requires a working Windows® event loop in your
application, as is typical for GUI applications on any
platform. Windows typically generate all sorts of events, like
mouse clicks, key strokes, resize events etc. They add up in
the event queue and a white window like yours is typical of
Windows® to indicate that "this application is no longer
working off its event loop. (Or in your case never started to
do so.)
If that is indeed the problem, worry not, because most events
can be handled by the default handler, but you'll need to
write an simple event loop. I'm not sure, but it could be that
you'll need to create a dummy window as well since event loops
work with window handles. Maybe it is ok to pass 0 everywhere,
maybe you need a valid handle.

That's rather unfortunate, as I was using DSFML as my main event generator and handler. I had a DSFML window up already that I was calling that function from. I don't know how to make the crossover between the two in D. I think I'll have to look into GtkD instead. Thanks for the idea, though.

Reply via email to