// Created: 13.07.99
// RCS-ID: $Id$
// Copyright: (c) wxWindows team
-// Licence: wxWindows license
+// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
// ============================================================================
}
#if wxUSE_FFILE
- wxFFile file(filename, "w");
+ wxFFile file(filename, _T("w"));
if ( file.IsOpened() && file.Write(GetValue()) )
{
// it's not modified any longer
{
// the generic version is unused in wxMSW
#ifndef __WIN32__
- wxChar ch;
+ wxChar ch = 0;
int keycode = event.GetKeyCode();
switch ( keycode )
{
ch = _T('/');
break;
+ case WXK_DELETE:
+ case WXK_NUMPAD_DELETE:
+ // delete the character at cursor
+ {
+ const long pos = GetInsertionPoint(),
+ last = GetLastPosition();
+ if ( pos < last )
+ Remove(pos, pos + 1);
+ }
+ break;
+
+ case WXK_BACK:
+ // delete the character before the cursor
+ {
+ const long pos = GetInsertionPoint();
+ if ( pos > 0 )
+ Remove(pos - 1, pos);
+ }
+ break;
+
default:
if ( keycode < 256 && keycode >= 0 && wxIsprint(keycode) )
{