1. wxDir works for MSW and documented

2. wxDateTime works with dates very close to the Epoch
3. setting font for wxRadioBox works


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4899 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-12-11 00:43:59 +00:00
parent 6bfd5671b0
commit 4afd752902
10 changed files with 204 additions and 39 deletions

View File

@@ -340,13 +340,13 @@ void MyTextCtrl::LogEvent(const wxChar *name, wxKeyEvent& event) const
case WXK_NUMPAD_SUBTRACT: key = "NUMPAD_SUBTRACT"; break;
case WXK_NUMPAD_DECIMAL: key = "NUMPAD_DECIMAL"; break;
default:
default:
{
if ( wxIsprint((int)keycode) )
key.Printf( _T("'%c'") , (char)keycode);
else
key.Printf( _T("unknown (%ld)"), keycode);
}
key.Printf( _T("unknown (%ld)"), keycode);
}
}
}
@@ -417,21 +417,25 @@ void MyTextCtrl::OnKeyDown(wxKeyEvent& event)
// go to position 10
SetInsertionPoint(10);
break;
case WXK_F4:
if (!m_hasCapture)
{
if (!m_hasCapture)
{
wxLogDebug( wxT("Now capturing mouse and events.") );
m_hasCapture = TRUE;
CaptureMouse();
}
else
{
m_hasCapture = TRUE;
CaptureMouse();
}
else
{
wxLogDebug( wxT("Stopped capturing mouse and events.") );
m_hasCapture = TRUE;
ReleaseMouse();
}
m_hasCapture = TRUE;
ReleaseMouse();
}
break;
case WXK_F5:
// insert a blank line
WriteText("\n");
}
LogEvent( _("Key down"), event);