toolBar->AddTool(wxID_PRINT, *(toolBarBitmaps[6]), wxNullBitmap, FALSE, currentX, -1, (wxObject *) NULL, "Print");
currentX += width + 5;
toolBar->AddSeparator();
- toolBar->AddTool(wxID_HELP, *(toolBarBitmaps[7]), wxNullBitmap, FALSE, currentX, -1, (wxObject *) NULL, "Help");
+ toolBar->AddTool(wxID_HELP, *(toolBarBitmaps[7]), *(toolBarBitmaps[6]), TRUE, currentX, -1, (wxObject *) NULL, "Help");
toolBar->EnableTool( wxID_PRINT, FALSE );
void MyFrame::OnToolLeftClick(wxCommandEvent& event)
{
wxString str;
- str.Printf("Clicked on tool %d", event.GetId());
+ str.Printf( _T("Clicked on tool %d"), event.GetId());
SetStatusText(str);
}
if (event.GetSelection() > -1)
{
wxString str;
- str.Printf("This is tool number %d", event.GetSelection());
+ str.Printf(_T("This is tool number %d"), event.GetSelection());
SetStatusText(str);
}
else