enum
{
- TEXT_QUIT = 100,
- TEXT_ABOUT,
- TEXT_LOAD,
+ TEXT_QUIT = wxID_EXIT,
+ TEXT_ABOUT = wxID_ABOUT,
+ TEXT_LOAD = 101,
TEXT_SAVE,
TEXT_CLEAR,
TEXT_RICH_TEXT_TEST,
{
// Create the main frame window
MyFrame *frame = new MyFrame((wxFrame *) NULL,
- _T("Text wxWidgets sample"), 50, 50, 700, 420);
+ _T("Text wxWidgets sample"), 50, 50, 700, 550);
frame->SetSizeHints( 500, 400 );
wxMenu *file_menu = new wxMenu;
m_horizontal->SetFont(wxFont(18, wxSWISS, wxNORMAL, wxNORMAL,
false, _T(""),
wxFONTENCODING_ISO8859_2));
- m_horizontal->AppendText(_T("®lu»ouèký kùò zbìsile èe¹tina «»"));
+ m_horizontal->AppendText(_T("\256lu\273ou\350k\375 k\371\362 zb\354sile \350e\271tina \253\273"));
break;
case '1':
m_horizontal->SetFont(wxFont(18, wxSWISS, wxNORMAL, wxNORMAL,
false, _T(""),
wxFONTENCODING_CP1251));
- m_horizontal->AppendText(_T("Ïðèâåò!"));
+ m_horizontal->AppendText(_T("\317\360\350\342\345\362!"));
break;
case '8':
#if wxUSE_UNICODE
m_horizontal->AppendText(L"\x0412\x0430\x0434\x0438\x043c \x0426");
#else
- m_horizontal->AppendText("ËÁÖÅÔÓÑ ÕÄÁÞÎÙÍ");
+ m_horizontal->AppendText("\313\301\326\305\324\323\321 \325\304\301\336\316\331\315");
#endif
}
}
}
m_multitext = new MyTextCtrl( this, wxID_ANY, _T("Multi line."),
- wxPoint(180,10), wxSize(240,70), wxTE_MULTILINE );
+ wxPoint(180,10), wxSize(200,70), wxTE_MULTILINE );
m_multitext->SetFont(*wxITALIC_FONT);
(*m_multitext) << _T(" Appended.");
m_multitext->SetInsertionPoint(0);
#endif
m_tab = new MyTextCtrl( this, 100, _T("Multiline, allow <TAB> processing."),
- wxPoint(180,90), wxSize(240,70), wxTE_MULTILINE | wxTE_PROCESS_TAB );
+ wxPoint(180,90), wxSize(200,70), wxTE_MULTILINE | wxTE_PROCESS_TAB );
m_tab->SetClientData((void *)_T("tab"));
m_enter = new MyTextCtrl( this, 100, _T("Multiline, allow <ENTER> processing."),
- wxPoint(180,170), wxSize(240,70), wxTE_MULTILINE);
+ wxPoint(180,170), wxSize(200,70), wxTE_MULTILINE);
m_enter->SetClientData((void *)_T("enter"));
m_textrich = new MyTextCtrl(this, wxID_ANY, _T("Allows more than 30Kb of text\n")
_T("(even under broken Win9x)\n")
_T("and a very very very very very ")
_T("very very very long line to test ")
- _T("wxHSCROLL style"),
- wxPoint(450, 10), wxSize(230, 230),
- wxTE_RICH | wxTE_MULTILINE);
+ _T("wxHSCROLL style\n")
+ _T("\nAnd here is a link in quotation marks to ")
+ _T("test wxTE_AUTO_URL: \"http://www.wxwidgets.org\""),
+ wxPoint(450, 10), wxSize(200, 230),
+ wxTE_RICH | wxTE_MULTILINE | wxTE_AUTO_URL);
m_textrich->SetStyle(0, 10, *wxRED);
m_textrich->SetStyle(10, 20, *wxBLUE);
m_textrich->SetStyle(30, 40,