]> git.saurik.com Git - wxWidgets.git/commitdiff
Various warning and Unicode fixes from ABX.
authorMattia Barbon <mbarbon@cpan.org>
Tue, 9 Sep 2003 20:24:34 +0000 (20:24 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Tue, 9 Sep 2003 20:24:34 +0000 (20:24 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23454 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

25 files changed:
contrib/samples/svg/svgtest.cpp
contrib/samples/xrc/derivdlg.cpp
contrib/src/animate/animate.cpp
samples/calendar/calendar.cpp
samples/checklst/checklst.cpp
samples/controls/controls.cpp
samples/dialogs/dialogs.cpp
samples/dnd/dnd.cpp
samples/dragimag/dragimag.cpp
samples/erase/erase.cpp
samples/event/event.cpp
samples/exec/exec.cpp
samples/grid/griddemo.cpp
samples/help/demo.cpp
samples/html/virtual/virtual.cpp
samples/ipc/client.cpp
samples/ipc/server.cpp
samples/joytest/joytest.cpp
samples/keyboard/keyboard.cpp
samples/listbox/lboxtest.cpp
samples/svg/svgtest.cpp
samples/vscroll/vstest.cpp
samples/wxtest/test.cpp
samples/wxtest/test_wdr.cpp
samples/xrc/derivdlg.cpp

index 60cf0520f3c5285e15e137c012180751139535ca..b16331b2a7e12e0e3aef1132a2c402d44a4c1837 100644 (file)
@@ -382,7 +382,7 @@ MyCanvas::MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size)
 wxSUNKEN_BORDER|wxVSCROLL|wxHSCROLL)
 {
     m_child = (MyChild *) parent ;
-    SetBackgroundColour(wxColour("WHITE"));
+    SetBackgroundColour(wxColour(_T("WHITE")));
     m_index = m_child->m_frame->nWinCreated % 7 ;
 }
 
@@ -425,10 +425,10 @@ void MyCanvas::OnDraw(wxDC& dc)
             dc.SetBrush(*wxCYAN_BRUSH);
             dc.SetPen(*wxRED_PEN);
             dc.DrawRectangle(10, 10, 100, 70);
-            wB = wxBrush ("DARK ORCHID", wxTRANSPARENT);
+            wB = wxBrush (_T("DARK ORCHID"), wxTRANSPARENT);
             dc.SetBrush (wB);
             dc.DrawRoundedRectangle(50, 50, 100, 70, 20);
-            dc.SetBrush (wxBrush("GOLDENROD", wxSOLID) );
+            dc.SetBrush (wxBrush(_T("GOLDENROD"), wxSOLID) );
             dc.DrawEllipse(100, 100, 100, 50);
 
             points[0].x = 100; points[0].y = 200;
@@ -449,10 +449,10 @@ void MyCanvas::OnDraw(wxDC& dc)
             dc.DrawLine(45,30,55,30);
             dc.DrawText(wxT("This is a Swiss-style string"), 50, 30);
             wC = dc.GetTextForeground() ;
-            dc.SetTextForeground ("FIREBRICK");
+            dc.SetTextForeground (_T("FIREBRICK"));
                                  
             // no effect in msw ??
-            dc.SetTextBackground ("WHEAT");
+            dc.SetTextBackground (_T("WHEAT"));
             dc.DrawText(wxT("This is a Red string"), 50, 200);
             dc.DrawRotatedText(wxT("This is a 45 deg string"), 50, 200, 45);
             dc.DrawRotatedText(wxT("This is a 90 deg string"), 50, 200, 90);
@@ -473,11 +473,11 @@ void MyCanvas::OnDraw(wxDC& dc)
             dc.DrawArc ( 270-50, 270-86, 270-86, 270-50, 270.0,270.0 );
             dc.SetDeviceOrigin(0,0);
 
-            wP.SetColour ("CADET BLUE");
+            wP.SetColour (_T("CADET BLUE"));
             dc.SetPen(wP);
             dc.DrawArc ( 75,125, 110, 40, 75.0, 75.0 );
 
-            wP.SetColour ("SALMON");
+            wP.SetColour (_T("SALMON"));
             dc.SetPen(wP);
             dc.SetBrush(*wxRED_BRUSH);
             //top left corner, width and height, start and end angle
@@ -488,7 +488,7 @@ void MyCanvas::OnDraw(wxDC& dc)
             wP.SetWidth(3);
             dc.SetPen(wP);
                                  //wxTRANSPARENT));
-            dc.SetBrush (wxBrush ("SALMON",wxSOLID)) ;
+            dc.SetBrush (wxBrush (_T("SALMON"),wxSOLID)) ;
             dc.DrawEllipticArc(300,  0,200,100, 0.0,145.0) ;
                                  //same end point
             dc.DrawEllipticArc(300, 50,200,100,90.0,145.0) ;
@@ -499,7 +499,7 @@ void MyCanvas::OnDraw(wxDC& dc)
 
         case 4:
             dc.DrawCheckMark ( 30,30,25,25);
-            dc.SetBrush (wxBrush ("SALMON",wxTRANSPARENT));
+            dc.SetBrush (wxBrush (_T("SALMON"),wxTRANSPARENT));
             dc.DrawCheckMark ( 80,50,75,75);
             dc.DrawRectangle ( 80,50,75,75);
             s = wxT("Two check marks");
index 437615d60be92d94c556e7b67580e2f7d766a344..b784e322b4ed23c6b6b677e77353ec6c10300de2 100644 (file)
@@ -73,7 +73,7 @@ PreferencesDialog::~PreferencesDialog()
 // Private members (including the event handlers)
 //-----------------------------------------------------------------------------
 
-void PreferencesDialog::OnMyButtonClicked( wxCommandEvent &event )
+void PreferencesDialog::OnMyButtonClicked( wxCommandEvent &WXUNUSED(event) )
 {
     // Construct a message dialog.
     wxMessageDialog msgDlg(this, _("You clicked on My Button"));    
@@ -85,7 +85,7 @@ void PreferencesDialog::OnMyButtonClicked( wxCommandEvent &event )
 
 // Update the enabled/disabled state of the edit/delete buttons depending on 
 // whether a row (item) is selected in the listctrl
-void PreferencesDialog::OuUpdateUIMyCheckbox( wxUpdateUIEvent &event )
+void PreferencesDialog::OuUpdateUIMyCheckbox( wxUpdateUIEvent &WXUNUSED(event) )
 {
     // Get a boolean value of whether the checkbox is checked
     bool myCheckBoxIsChecked;    
@@ -102,7 +102,7 @@ void PreferencesDialog::OuUpdateUIMyCheckbox( wxUpdateUIEvent &event )
 }
 
 
-void PreferencesDialog::OnOK( wxCommandEvent& event )
+void PreferencesDialog::OnOK( wxCommandEvent& WXUNUSED(event) )
 {
     // Construct a message dialog (An extra parameters to put a cancel button on).
     wxMessageDialog msgDlg2(this, _("Press OK to close Derived dialog, or Cancel to abort"),
index b85d93baeac8397d2e11de319507e1f123be5cd3..ec393517d37eee941aae7345dc7329935f2601b9 100644 (file)
@@ -69,7 +69,7 @@ void wxAnimationPlayer::SetAnimation(wxAnimationBase* animation, bool destroyAni
 }
 
 // Play
-bool wxAnimationPlayer::Play(wxWindow& window, const wxPoint& pos, bool looped)
+bool wxAnimationPlayer::Play(wxWindow& window, const wxPoint& pos, bool WXUNUSED(looped))
 {
     m_window = & window;
 
@@ -216,7 +216,7 @@ bool wxAnimationPlayer::GetTransparentColour(wxColour& col) const
 }
 
 // Play the frame
-bool wxAnimationPlayer::PlayFrame(int frame, wxWindow& window, const wxPoint& pos)
+bool wxAnimationPlayer::PlayFrame(int frame, wxWindow& window, const wxPoint& WXUNUSED(pos))
 {
     wxMemoryDC dc;
     dc.SelectObject(m_backingStore);
@@ -647,7 +647,7 @@ void wxAnimationCtrlBase::FitToAnimation()
     SetClientSize(sz);
 }
 
-void wxAnimationCtrlBase::OnPaint(wxPaintEvent& event)
+void wxAnimationCtrlBase::OnPaint(wxPaintEvent& WXUNUSED(event))
 {
     wxPaintDC dc(this);
 
index a19364dc5cf3088800b7d36798511cb99a540213..c4e285b754b3e5a6d1bb7a1f45fb6a03a307273e 100644 (file)
@@ -340,12 +340,12 @@ void MyFrame::OnAllowYearUpdate(wxUpdateUIEvent& event)
     event.Enable( GetMenuBar()->IsChecked(Calendar_Cal_Month));
 }
 
-void MyFrame::OnSetDate(wxCommandEvent &event)
+void MyFrame::OnSetDate(wxCommandEvent &WXUNUSED(event))
 {
     m_panel->SetDate();
 }
 
-void MyFrame::OnToday(wxCommandEvent &event)
+void MyFrame::OnToday(wxCommandEvent &WXUNUSED(event))
 {
     m_panel->Today();
 }
index 41d4f842e984a07bcd06efe34f1f30801769530b..635a13df623bffdd5f1bb82c4e6f6058eb20cab2 100644 (file)
@@ -257,25 +257,25 @@ void CheckListBoxFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
                  wxICON_INFORMATION, this);
 }
 
-void CheckListBoxFrame::OnCheckFirstItem(wxCommandEvent& event)
+void CheckListBoxFrame::OnCheckFirstItem(wxCommandEvent& WXUNUSED(event))
 {
     if ( !m_pListBox->IsEmpty() )
         m_pListBox->Check(0);
 }
 
-void CheckListBoxFrame::OnUncheckFirstItem(wxCommandEvent& event)
+void CheckListBoxFrame::OnUncheckFirstItem(wxCommandEvent& WXUNUSED(event))
 {
     if ( !m_pListBox->IsEmpty() )
         m_pListBox->Check(0, FALSE);
 }
 
-void CheckListBoxFrame::OnToggleFirstItem(wxCommandEvent& event)
+void CheckListBoxFrame::OnToggleFirstItem(wxCommandEvent& WXUNUSED(event))
 {
     if ( !m_pListBox->IsEmpty() )
         m_pListBox->Check(0, !m_pListBox->IsChecked(0));
 }
 
-void CheckListBoxFrame::OnAddItems(wxCommandEvent& event)
+void CheckListBoxFrame::OnAddItems(wxCommandEvent& WXUNUSED(event))
 {
     static size_t s_nItem = 0;
     wxArrayString items;
index 653a78f1b865b4eeb8a1a47f08edfa24a2a5f8d5..52f3167fa9e938afa1dffca00f03ebc71ec77a33 100644 (file)
@@ -981,7 +981,7 @@ void MyPanel::OnTestButton(wxCommandEvent& event)
                  event.GetId() == ID_BUTTON_TEST1 ? _T('1') : _T('2'));
 }
 
-void MyPanel::OnBmpButton(wxCommandEvent& event)
+void MyPanel::OnBmpButton(wxCommandEvent& WXUNUSED(event))
 {
     wxLogMessage(_T("Bitmap button clicked."));
 }
@@ -1607,7 +1607,7 @@ void MyFrame::OnClearLog(wxCommandEvent& WXUNUSED(event))
 }
 
 #if wxUSE_TOOLTIPS
-void MyFrame::OnSetTooltipDelay(wxCommandEvent& event)
+void MyFrame::OnSetTooltipDelay(wxCommandEvent& WXUNUSED(event))
 {
     static long s_delay = 5000;
 
@@ -1628,7 +1628,7 @@ void MyFrame::OnSetTooltipDelay(wxCommandEvent& event)
     wxLogStatus(this, _T("Tooltip delay set to %ld milliseconds"), s_delay);
 }
 
-void MyFrame::OnToggleTooltips(wxCommandEvent& event)
+void MyFrame::OnToggleTooltips(wxCommandEvent& WXUNUSED(event))
 {
     static bool s_enabled = TRUE;
 
index 4a316451a4d9141924d371e378c12c0510aa0c66..6bb75cca8e6b7488044360680d37a053d2049610 100644 (file)
@@ -312,7 +312,7 @@ void MyFrame::ChooseFontGeneric(wxCommandEvent& WXUNUSED(event) )
 }
 #endif // wxTEST_GENERIC_DIALOGS_IN_MSW
 
-void MyFrame::LogDialog(wxCommandEvent& event)
+void MyFrame::LogDialog(wxCommandEvent& WXUNUSED(event))
 {
     // calling wxYield() (as ~wxBusyCursor does) shouldn't result in messages
     // being flushed -- test it
@@ -635,7 +635,7 @@ void MyFrame::ModelessDlg(wxCommandEvent& event)
     }
 }
 
-void MyFrame::ShowTip(wxCommandEvent& event)
+void MyFrame::ShowTip(wxCommandEvent& WXUNUSED(event))
 {
 #if wxUSE_STARTUP_TIPS
     static size_t s_index = (size_t)-1;
index 446dba09406d64aa684bd678b5e3ebb8daaa67f8..7abe4495ebee24ebc01e2e1a1e6d735a74305f44 100644 (file)
@@ -1723,7 +1723,7 @@ void DnDShapeFrame::OnDrop(wxCoord x, wxCoord y, DnDShape *shape)
     SetShape(shape);
 }
 
-void DnDShapeFrame::OnEditShape(wxCommandEvent& event)
+void DnDShapeFrame::OnEditShape(wxCommandEvent& WXUNUSED(event))
 {
     DnDShapeDialog dlg(this, m_shape);
     if ( dlg.ShowModal() == wxID_OK )
@@ -1737,19 +1737,19 @@ void DnDShapeFrame::OnEditShape(wxCommandEvent& event)
     }
 }
 
-void DnDShapeFrame::OnNewShape(wxCommandEvent& event)
+void DnDShapeFrame::OnNewShape(wxCommandEvent& WXUNUSED(event))
 {
     SetShape(new DnDEllipticShape(wxPoint(10, 10), wxSize(80, 60), *wxRED));
 
     SetStatusText(_T("You can now drag the shape to another frame"));
 }
 
-void DnDShapeFrame::OnClearShape(wxCommandEvent& event)
+void DnDShapeFrame::OnClearShape(wxCommandEvent& WXUNUSED(event))
 {
     SetShape(NULL);
 }
 
-void DnDShapeFrame::OnCopyShape(wxCommandEvent& event)
+void DnDShapeFrame::OnCopyShape(wxCommandEvent& WXUNUSED(event))
 {
     if ( m_shape )
     {
@@ -1765,7 +1765,7 @@ void DnDShapeFrame::OnCopyShape(wxCommandEvent& event)
     }
 }
 
-void DnDShapeFrame::OnPasteShape(wxCommandEvent& event)
+void DnDShapeFrame::OnPasteShape(wxCommandEvent& WXUNUSED(event))
 {
     wxClipboardLocker clipLocker;
     if ( !clipLocker )
index 030ff243504868fad86de297249c9c2fa68f8488..398a53d634c4ebf5b7e67f2c90a7679f2a8a65fe 100644 (file)
@@ -455,7 +455,7 @@ bool MyApp::TileBitmap(const wxRect& rect, wxDC& dc, wxBitmap& bitmap)
     return TRUE;
 }
 
-void MyApp::OnUseScreen(wxCommandEvent& event)
+void MyApp::OnUseScreen(wxCommandEvent& WXUNUSED(event))
 {
     m_useScreen = !m_useScreen;
 }
index 2e1d859d80ddc137efd9b9a2116886cbb4bc2474..6e87821b5ef0e49f0e382dc2179b843c998113ed 100644 (file)
@@ -203,7 +203,7 @@ void MyCanvas::OnChar( wxKeyEvent &event )
     
 }
 
-void MyCanvas::OnPaint( wxPaintEvent &event )
+void MyCanvas::OnPaint( wxPaintEvent &WXUNUSED(event) )
 {
     wxPaintDC dc(this);
     PrepareDC( dc );
index beeaad030d2b0570d96f33d7165982e19620da97..a960f5dcc0869d949b3778181a29e600e87c2edc 100644 (file)
@@ -355,7 +355,7 @@ void MyFrame::OnPopEventHandler(wxCommandEvent& WXUNUSED(event))
     SetStatusText(wxString::Format(_T("Push count: %u"), m_nPush), Status_Push);
 }
 
-void MyFrame::OnTest(wxCommandEvent& event)
+void MyFrame::OnTest(wxCommandEvent& WXUNUSED(event))
 {
     wxLogMessage(_T("This is the test event handler in the main frame"));
 }
@@ -369,14 +369,14 @@ void MyFrame::OnUpdateUIPop(wxUpdateUIEvent& event)
 // custom event methods
 // ----------------------------------------------------------------------------
 
-void MyFrame::OnFireCustom(wxCommandEvent& event)
+void MyFrame::OnFireCustom(wxCommandEvent& WXUNUSED(event))
 {
     wxCommandEvent eventCustom(wxEVT_MY_CUSTOM_COMMAND);
 
     wxPostEvent(this, eventCustom);
 }
 
-void MyFrame::OnProcessCustom(wxCommandEvent& event)
+void MyFrame::OnProcessCustom(wxCommandEvent& WXUNUSED(event))
 {
     wxLogMessage(_T("Got a custom event!"));
 }
index d09f94e5c383d81e3aed07d01d5b999de16f54ce..50f2a1acb3996dd05eec1bda08ee9443a40c6cae 100644 (file)
@@ -746,7 +746,7 @@ void MyFrame::OnExecWithPipe(wxCommandEvent& WXUNUSED(event))
     m_cmdLast = cmd;
 }
 
-void MyFrame::OnPOpen(wxCommandEvent& event)
+void MyFrame::OnPOpen(wxCommandEvent& WXUNUSED(event))
 {
     wxString cmd = wxGetTextFromUser(_T("Enter the command to launch: "),
                                      DIALOG_TITLE,
@@ -778,7 +778,7 @@ void MyFrame::OnPOpen(wxCommandEvent& event)
     new MyPipeFrame(this, cmd, process);
 }
 
-void MyFrame::OnFileExec(wxCommandEvent& event)
+void MyFrame::OnFileExec(wxCommandEvent& WXUNUSED(event))
 {
     static wxString s_filename;
 
@@ -1096,7 +1096,7 @@ void MyPipeFrame::OnClose(wxCloseEvent& event)
     event.Skip();
 }
 
-void MyPipeFrame::OnProcessTerm(wxProcessEvent& event)
+void MyPipeFrame::OnProcessTerm(wxProcessEvent& WXUNUSED(event))
 {
     delete m_process;
     m_process = NULL;
index 8fe0da43d6b50d0245b3805c4e86f6cef267d4d9..9db8fa6f9de7990ce78f1dac08d5629e657fcc09 100644 (file)
@@ -1157,7 +1157,7 @@ int BugsGridTable::GetNumberCols()
     return Col_Max;
 }
 
-bool BugsGridTable::IsEmptyCell( int row, int col )
+bool BugsGridTable::IsEmptyCell( int WXUNUSED(row), int WXUNUSED(col) )
 {
     return FALSE;
 }
index 48b47d7f56e53359501996de73745eb2d5afd6cc..48fa9210e2ecc91d05766daf598ad73e5e168b5d 100644 (file)
@@ -448,14 +448,14 @@ void MyFrame::OnHelp(wxCommandEvent& event)
     ShowHelp(event.GetId(), m_help);
 }
 
-void MyFrame::OnShowContextHelp(wxCommandEvent& event)
+void MyFrame::OnShowContextHelp(wxCommandEvent& WXUNUSED(event))
 {
     // This starts context help mode, then the user
     // clicks on a window to send a help message
     wxContextHelp contextHelp(this);
 }
 
-void MyFrame::OnShowDialogContextHelp(wxCommandEvent& event)
+void MyFrame::OnShowDialogContextHelp(wxCommandEvent& WXUNUSED(event))
 {
     MyModalDialog dialog(this);
     dialog.ShowModal();
index bd681ed8a5f9ae9f0ac7408d1955b02fb9063642..09660231371666f7aeb60762d75119b70e5f29f7 100644 (file)
@@ -50,7 +50,7 @@ bool MyVFS::CanOpen(const wxString& location)
 
 
 
-wxFSFile* MyVFS::OpenFile(wxFileSystem& fs, const wxString& location)
+wxFSFile* MyVFS::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& location)
 {
     wxFSFile *f;
     wxInputStream *str;
index 9c479b00751c5b58f24d98eb9336f49942139f26..f4ad6551f2d4db953ed1ff69f1127e59fa7352c8 100644 (file)
@@ -160,21 +160,21 @@ MyFrame::MyFrame(wxFrame *frame, const wxString& title)
     the_list->Append(_T("Fruit"));
 }
 
-void MyFrame::OnExecute(wxCommandEvent& event)
+void MyFrame::OnExecute(wxCommandEvent& WXUNUSED(event))
 {
     if (the_connection)
         if (!the_connection->Execute(_T("Hello from the client!")))
             wxMessageBox(_T("Execute failed"), _T("Client Demo Error"));
 }
 
-void MyFrame::OnPoke(wxCommandEvent& event)
+void MyFrame::OnPoke(wxCommandEvent& WXUNUSED(event))
 {
     if (the_connection)
         if (!the_connection->Poke(_T("An item"), _T("Some data to poke at the server!")))
             wxMessageBox(_T("Poke failed"), _T("Client Demo Error"));
 }
 
-void MyFrame::OnRequest(wxCommandEvent& event)
+void MyFrame::OnRequest(wxCommandEvent& WXUNUSED(event))
 {
     if (the_connection)
     {
@@ -186,7 +186,7 @@ void MyFrame::OnRequest(wxCommandEvent& event)
     }
 }
 
-void MyFrame::OnExit(wxCommandEvent& event)
+void MyFrame::OnExit(wxCommandEvent& WXUNUSED(event))
 {
     Close();
 }
@@ -196,7 +196,7 @@ wxConnectionBase *MyClient::OnMakeConnection()
     return new MyConnection;
 }
 
-bool MyConnection::OnAdvise(const wxString& topic, const wxString& item, wxChar *data, int size, wxIPCFormat format)
+bool MyConnection::OnAdvise(const wxString& WXUNUSED(topic), const wxString& WXUNUSED(item), wxChar *data, int WXUNUSED(size), wxIPCFormat WXUNUSED(format))
 {
     if (the_list)
     {
index 5d9b0cf1aa1fa7cc93ba01ad4ce20c724204a5a9..3e3361041eb8cc5215d12f46b316497c1cb9671a 100644 (file)
@@ -171,7 +171,7 @@ IPCDialogBox::~IPCDialogBox( )
         m_connection->dialog = NULL;
 }
 
-void IPCDialogBox::OnQuit(wxCommandEvent& event)
+void IPCDialogBox::OnQuit(wxCommandEvent& WXUNUSED(event))
 {
     m_connection->Disconnect();
     delete m_connection;
index 349e104c8f6f864c664c7db263cf8a9f1cdc385e..8b9b07c3a0aac7e1cc0b6c3fd037e7275b379a80 100644 (file)
@@ -167,7 +167,7 @@ MyFrame::~MyFrame()
     // Empty
 }
 
-void MyFrame::OnQuit(wxCommandEvent& event)
+void MyFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
 {
     Close(TRUE);
 }
index aca5749e2b5b3084adced9e55af3c9bbfd4a1cdb..29cc5abb9611fc6de6a61c5a644c3adf9afbdb6c 100644 (file)
@@ -320,7 +320,7 @@ void MyFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
     wxMessageBox(msg, _T("About wxKeyboard"), wxOK | wxICON_INFORMATION, this);
 }
 
-void MyFrame::OnClear(wxCommandEvent& event)
+void MyFrame::OnClear(wxCommandEvent& WXUNUSED(event))
 {
     m_lboxLog->Clear();
 }
index 85e68327519f857cac5d08802d9b521e00119a30..2e38ba5d72359f74d2dc9e33123f02fc24fabcf0 100644 (file)
@@ -597,17 +597,17 @@ void LboxTestFrame::OnButtonDeleteSel(wxCommandEvent& WXUNUSED(event))
     }
 }
 
-void LboxTestFrame::OnButtonClear(wxCommandEvent& event)
+void LboxTestFrame::OnButtonClear(wxCommandEvent& WXUNUSED(event))
 {
     m_lbox->Clear();
 }
 
-void LboxTestFrame::OnButtonClearLog(wxCommandEvent& event)
+void LboxTestFrame::OnButtonClearLog(wxCommandEvent& WXUNUSED(event))
 {
     m_lboxLog->Clear();
 }
 
-void LboxTestFrame::OnButtonAdd(wxCommandEvent& event)
+void LboxTestFrame::OnButtonAdd(wxCommandEvent& WXUNUSED(event))
 {
     static size_t s_item = 0;
 
@@ -630,7 +630,7 @@ void LboxTestFrame::OnButtonAddMany(wxCommandEvent& WXUNUSED(event))
     }
 }
 
-void LboxTestFrame::OnButtonAddSeveral(wxCommandEvent& event)
+void LboxTestFrame::OnButtonAddSeveral(wxCommandEvent& WXUNUSED(event))
 {
     wxArrayString items;
     items.Add(_T("First"));
@@ -680,7 +680,7 @@ void LboxTestFrame::OnListboxDClick(wxCommandEvent& event)
     wxLogMessage(_T("Listbox item %d double clicked"), event.GetInt());
 }
 
-void LboxTestFrame::OnCheckOrRadioBox(wxCommandEvent& event)
+void LboxTestFrame::OnCheckOrRadioBox(wxCommandEvent& WXUNUSED(event))
 {
     m_dirty = TRUE;
 }
index 60cf0520f3c5285e15e137c012180751139535ca..b16331b2a7e12e0e3aef1132a2c402d44a4c1837 100644 (file)
@@ -382,7 +382,7 @@ MyCanvas::MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size)
 wxSUNKEN_BORDER|wxVSCROLL|wxHSCROLL)
 {
     m_child = (MyChild *) parent ;
-    SetBackgroundColour(wxColour("WHITE"));
+    SetBackgroundColour(wxColour(_T("WHITE")));
     m_index = m_child->m_frame->nWinCreated % 7 ;
 }
 
@@ -425,10 +425,10 @@ void MyCanvas::OnDraw(wxDC& dc)
             dc.SetBrush(*wxCYAN_BRUSH);
             dc.SetPen(*wxRED_PEN);
             dc.DrawRectangle(10, 10, 100, 70);
-            wB = wxBrush ("DARK ORCHID", wxTRANSPARENT);
+            wB = wxBrush (_T("DARK ORCHID"), wxTRANSPARENT);
             dc.SetBrush (wB);
             dc.DrawRoundedRectangle(50, 50, 100, 70, 20);
-            dc.SetBrush (wxBrush("GOLDENROD", wxSOLID) );
+            dc.SetBrush (wxBrush(_T("GOLDENROD"), wxSOLID) );
             dc.DrawEllipse(100, 100, 100, 50);
 
             points[0].x = 100; points[0].y = 200;
@@ -449,10 +449,10 @@ void MyCanvas::OnDraw(wxDC& dc)
             dc.DrawLine(45,30,55,30);
             dc.DrawText(wxT("This is a Swiss-style string"), 50, 30);
             wC = dc.GetTextForeground() ;
-            dc.SetTextForeground ("FIREBRICK");
+            dc.SetTextForeground (_T("FIREBRICK"));
                                  
             // no effect in msw ??
-            dc.SetTextBackground ("WHEAT");
+            dc.SetTextBackground (_T("WHEAT"));
             dc.DrawText(wxT("This is a Red string"), 50, 200);
             dc.DrawRotatedText(wxT("This is a 45 deg string"), 50, 200, 45);
             dc.DrawRotatedText(wxT("This is a 90 deg string"), 50, 200, 90);
@@ -473,11 +473,11 @@ void MyCanvas::OnDraw(wxDC& dc)
             dc.DrawArc ( 270-50, 270-86, 270-86, 270-50, 270.0,270.0 );
             dc.SetDeviceOrigin(0,0);
 
-            wP.SetColour ("CADET BLUE");
+            wP.SetColour (_T("CADET BLUE"));
             dc.SetPen(wP);
             dc.DrawArc ( 75,125, 110, 40, 75.0, 75.0 );
 
-            wP.SetColour ("SALMON");
+            wP.SetColour (_T("SALMON"));
             dc.SetPen(wP);
             dc.SetBrush(*wxRED_BRUSH);
             //top left corner, width and height, start and end angle
@@ -488,7 +488,7 @@ void MyCanvas::OnDraw(wxDC& dc)
             wP.SetWidth(3);
             dc.SetPen(wP);
                                  //wxTRANSPARENT));
-            dc.SetBrush (wxBrush ("SALMON",wxSOLID)) ;
+            dc.SetBrush (wxBrush (_T("SALMON"),wxSOLID)) ;
             dc.DrawEllipticArc(300,  0,200,100, 0.0,145.0) ;
                                  //same end point
             dc.DrawEllipticArc(300, 50,200,100,90.0,145.0) ;
@@ -499,7 +499,7 @@ void MyCanvas::OnDraw(wxDC& dc)
 
         case 4:
             dc.DrawCheckMark ( 30,30,25,25);
-            dc.SetBrush (wxBrush ("SALMON",wxTRANSPARENT));
+            dc.SetBrush (wxBrush (_T("SALMON"),wxTRANSPARENT));
             dc.DrawCheckMark ( 80,50,75,75);
             dc.DrawRectangle ( 80,50,75,75);
             s = wxT("Two check marks");
index 04255ef9479b2d703bd794957349ad1f447a5fa5..378fe4cebc6658c973fd08637f7f847a0ccac7e8 100644 (file)
@@ -73,7 +73,7 @@ public:
         if ( m_frameStatusBar )
         {
             wxSize sz = GetClientSize();
-            SetStatusText(wxString::Format("%dx%d", sz.x, sz.y), 1);
+            SetStatusText(wxString::Format(_T("%dx%d"), sz.x, sz.y), 1);
         }
 #endif // wxUSE_STATUSBAR
 
@@ -101,7 +101,7 @@ public:
     {
         m_frame->SetStatusText(wxString::Format
                                (
-                                    "Page size = %d, pos = %d, max = %d",
+                                    _T("Page size = %d, pos = %d, max = %d"),
                                     GetScrollThumb(wxVERTICAL),
                                     GetScrollPos(wxVERTICAL),
                                     GetScrollRange(wxVERTICAL)
index 91f09a013f719620b251e5f1c157cf14026d2597..8eec11325d64ae9e035cfd788e5804db9d232da4 100644 (file)
@@ -77,7 +77,7 @@ MyFrame::MyFrame( wxWindow *parent, wxWindowID id, const wxString &title,
     CreateMyMenuBar();
     
     CreateStatusBar(1);
-    SetStatusText( "Welcome!" );
+    SetStatusText( _T("Welcome!") );
     
      // insert main window here
 }
@@ -93,25 +93,25 @@ void MyFrame::CreateMyMenuBar()
 
 // WDR: handler implementations for MyFrame
 
-void MyFrame::OnTest( wxCommandEvent &event )
+void MyFrame::OnTest( wxCommandEvent &WXUNUSED(event) )
 {
-    MyDialog dialog( this, -1, "Test" );
+    MyDialog dialog( this, -1, _T("Test") );
     dialog.ShowModal();
 }
 
-void MyFrame::OnAbout( wxCommandEvent &event )
+void MyFrame::OnAbout( wxCommandEvent &WXUNUSED(event) )
 {
-    wxMessageDialog dialog( this, "Welcome to SuperApp 1.0\n(C)opyright Joe Hacker",
-        "About SuperApp", wxOK|wxICON_INFORMATION );
+    wxMessageDialog dialog( this, _T("Welcome to SuperApp 1.0\n(C)opyright Joe Hacker"),
+        _T("About SuperApp"), wxOK|wxICON_INFORMATION );
     dialog.ShowModal();
 }
 
-void MyFrame::OnQuit( wxCommandEvent &event )
+void MyFrame::OnQuit( wxCommandEvent &WXUNUSED(event) )
 {
      Close( TRUE );
 }
 
-void MyFrame::OnCloseWindow( wxCloseEvent &event )
+void MyFrame::OnCloseWindow( wxCloseEvent &WXUNUSED(event) )
 {
     // if ! saved changes -> return
     
@@ -130,7 +130,7 @@ MyApp::MyApp()
 
 bool MyApp::OnInit()
 {
-    MyFrame *frame = new MyFrame( NULL, -1, "SuperApp", wxPoint(20,20), wxSize(500,340) );
+    MyFrame *frame = new MyFrame( NULL, -1, _T("SuperApp"), wxPoint(20,20), wxSize(500,340) );
     frame->Show( TRUE );
     
     return TRUE;
index c6ec0d7ed642fff6d02b54e7e4000d8ae222f6f7..9d577d12d3072239e9b3708f2ef0f00bcab0f205 100644 (file)
@@ -24,12 +24,12 @@ wxSizer *MyDialogFunc( wxWindow *parent, bool call_fit, bool set_sizer )
 {
     wxBoxSizer *item0 = new wxBoxSizer( wxVERTICAL );
 
-    wxStaticBox *item2 = new wxStaticBox( parent, -1, "Text" );
+    wxStaticBox *item2 = new wxStaticBox( parent, -1, _T("Text") );
     wxStaticBoxSizer *item1 = new wxStaticBoxSizer( item2, wxVERTICAL );
 
     wxBoxSizer *item3 = new wxBoxSizer( wxHORIZONTAL );
 
-    wxTextCtrl *item4 = new wxTextCtrl( parent, ID_TEXTCTRL, "", wxDefaultPosition, wxSize(80,-1), 0 );
+    wxTextCtrl *item4 = new wxTextCtrl( parent, ID_TEXTCTRL, wxEmptyString, wxDefaultPosition, wxSize(80,-1), 0 );
     item3->Add( item4, 0, wxALIGN_CENTRE|wxALL, 5 );
 
     item1->Add( item3, 0, wxALIGN_CENTRE|wxALL, 5 );
@@ -57,10 +57,10 @@ wxMenuBar *MyMenuBarFunc()
     wxMenuBar *item0 = new wxMenuBar;
     
     wxMenu* item1 = new wxMenu;
-    item1->Append( ID_ABOUT, "About...\tF1", "" );
-    item1->Append( ID_TEST, "Test...\tF2", "" );
-    item1->Append( ID_QUIT, "Quit\tCtrl-Q", "" );
-    item0->Append( item1, "File" );
+    item1->Append( ID_ABOUT, _T("About...\tF1"), wxEmptyString );
+    item1->Append( ID_TEST, _T("Test...\tF2"), wxEmptyString );
+    item1->Append( ID_QUIT, _T("Quit\tCtrl-Q"), wxEmptyString );
+    item0->Append( item1, _T("File") );
     
     return item0;
 }
index 437615d60be92d94c556e7b67580e2f7d766a344..b784e322b4ed23c6b6b677e77353ec6c10300de2 100644 (file)
@@ -73,7 +73,7 @@ PreferencesDialog::~PreferencesDialog()
 // Private members (including the event handlers)
 //-----------------------------------------------------------------------------
 
-void PreferencesDialog::OnMyButtonClicked( wxCommandEvent &event )
+void PreferencesDialog::OnMyButtonClicked( wxCommandEvent &WXUNUSED(event) )
 {
     // Construct a message dialog.
     wxMessageDialog msgDlg(this, _("You clicked on My Button"));    
@@ -85,7 +85,7 @@ void PreferencesDialog::OnMyButtonClicked( wxCommandEvent &event )
 
 // Update the enabled/disabled state of the edit/delete buttons depending on 
 // whether a row (item) is selected in the listctrl
-void PreferencesDialog::OuUpdateUIMyCheckbox( wxUpdateUIEvent &event )
+void PreferencesDialog::OuUpdateUIMyCheckbox( wxUpdateUIEvent &WXUNUSED(event) )
 {
     // Get a boolean value of whether the checkbox is checked
     bool myCheckBoxIsChecked;    
@@ -102,7 +102,7 @@ void PreferencesDialog::OuUpdateUIMyCheckbox( wxUpdateUIEvent &event )
 }
 
 
-void PreferencesDialog::OnOK( wxCommandEvent& event )
+void PreferencesDialog::OnOK( wxCommandEvent& WXUNUSED(event) )
 {
     // Construct a message dialog (An extra parameters to put a cancel button on).
     wxMessageDialog msgDlg2(this, _("Press OK to close Derived dialog, or Cancel to abort"),