More work on wxWidgets, almost working