g_displayDC->savePNGFromDC(screenshot.mb_str(),
r.x, r. y, r.x+r.width, r.y+r.height);
- wxMessageBox(_("Screenshot captured: ") + wxString(screenshot));
+ wxMessageBox(wxString::Format(_T("Screenshot captured: %s"),
+ screenshot.c_str()));
}
// ---------------------------------------------------------------------------
#ifdef __WXDEBUG__ // FIXME_MGL - remove when KB_sysReq works in MGL!
|| (event.m_keyCode == WXK_F1 &&
event.m_shiftDown && event.m_controlDown)
- )
#endif
+ )
{
wxCaptureScreenshot(event.m_altDown/*only active wnd?*/);
return TRUE;
if ( !g_winMng )
{
if ( !wxTheApp->SetDisplayMode(wxGetDefaultDisplayMode()) )
- wxFatalError(_("Cannot initialize display."));
+ wxLogFatalError(_("Cannot initialize display."));
}
// generic:
void wxWindowMGL::DoReleaseMouse()
{
- wxASSERT_MSG( gs_mouseCapture == this, wxT("attempt to release mouse, but this window hasn't captured it") )
+ wxASSERT_MSG( gs_mouseCapture == this, wxT("attempt to release mouse, but this window hasn't captured it") );
MGL_wmUncaptureEvents(m_wnd, wxMGL_CAPTURE_MOUSE);
gs_mouseCapture = NULL;