void OnQuit(wxCommandEvent& event);
void OnAbout(wxCommandEvent& event);
- void OnIncFont(wxCommandEvent& event) { DoResizeFont(+2); }
- void OnDecFont(wxCommandEvent& event) { DoResizeFont(-2); }
+ void OnIncFont(wxCommandEvent& WXUNUSED(event)) { DoResizeFont(+2); }
+ void OnDecFont(wxCommandEvent& WXUNUSED(event)) { DoResizeFont(-2); }
void OnBold(wxCommandEvent& event);
void OnItalic(wxCommandEvent& event);
Font_wxSMALL_FONT,
Font_wxITALIC_FONT,
Font_wxSWISS_FONT,
+ Font_Standard,
Font_Choose = 100,
Font_EnumFamiliesForEncoding,
menuStdFonts->Append(Font_wxSMALL_FONT, wxT("wxSMALL_FONT"), wxT("Small font used by wxWindows"));
menuStdFonts->Append(Font_wxITALIC_FONT, wxT("wxITALIC_FONT"), wxT("Italic font used by wxWindows"));
menuStdFonts->Append(Font_wxSWISS_FONT, wxT("wxSWISS_FONT"), wxT("Swiss font used by wxWindows"));
- menuSelect->Append(-2, wxT("Standar&d fonts"), menuStdFonts);
+ menuSelect->Append(Font_Standard, wxT("Standar&d fonts"), menuStdFonts);
menuSelect->AppendSeparator();
menuSelect->Append(Font_EnumFamilies, wxT("Enumerate font &families\tCtrl-F"));
wxFONTENCODING_ISO8859_7,
wxFONTENCODING_ISO8859_15,
wxFONTENCODING_KOI8,
+ wxFONTENCODING_KOI8_U,
wxFONTENCODING_CP1250,
wxFONTENCODING_CP1251,
wxFONTENCODING_CP1252,
wxT("Greek (ISO-8859-7)"),
wxT("Western European with Euro (ISO-8859-15)"),
wxT("KOI8-R"),
+ wxT("KOI8-U"),
wxT("Windows Central European (CP 1250)"),
wxT("Windows Cyrillic (CP 1251)"),
wxT("Windows Western European (CP 1252)"),
if ( m_font.Ok() )
{
- wxNativeFontInfo *info = m_font.GetNativeFontInfo();
+ const wxNativeFontInfo *info = m_font.GetNativeFontInfo();
if ( info )
{
- delete info;
-
wxString fontDesc = m_font.GetNativeFontInfoUserDesc();
fontInfo.Printf(wxT("Native font info: %s"), fontDesc.c_str());
}
// draw the lines between them
- dc.SetPen(wxPen(wxColour("blue"), 1, wxSOLID));
+ dc.SetPen(wxPen(wxColour(_T("blue")), 1, wxSOLID));
int l;
// horizontal