git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27459
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
MyFrame* frame = new MyFrame((wxFrame *) NULL, -1,
_T("wxToolBar Sample"),
#ifdef __WXWINCE__
MyFrame* frame = new MyFrame((wxFrame *) NULL, -1,
_T("wxToolBar Sample"),
#ifdef __WXWINCE__
- wxPoint(0, 0), wxDefaultSize
+ wxDefaultPosition, wxDefaultSize
#else
wxPoint(100, 100), wxSize(550, 300)
#endif
#else
wxPoint(100, 100), wxSize(550, 300)
#endif
frame->SetStatusText(_T("Hello, wxWidgets"));
frame->SetStatusText(_T("Hello, wxWidgets"));
m_rows = 1;
m_nPrint = 1;
m_rows = 1;
m_nPrint = 1;
// Give it a status line
CreateStatusBar();
// Give it a status line
CreateStatusBar();
// Give it an icon
SetIcon(wxICON(mondrian));
// Give it an icon
SetIcon(wxICON(mondrian));
void MyFrame::OnToolEnter(wxCommandEvent& event)
{
void MyFrame::OnToolEnter(wxCommandEvent& event)
{
if (event.GetSelection() > -1)
{
wxString str;
if (event.GetSelection() > -1)
{
wxString str;
}
else
SetStatusText(_T(""));
}
else
SetStatusText(_T(""));
}
void MyFrame::OnToggleRadioBtn(wxCommandEvent& event)
}
void MyFrame::OnToggleRadioBtn(wxCommandEvent& event)