* Copyright (C) 2000-2004 the VideoLAN team
* $Id$
*
- * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
+ * Authors: Olivier Teulière <ipkiss@via.ecp.fr>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
BEGIN_EVENT_TABLE(Messages, wxFrame)
/* Button events */
- EVT_BUTTON(wxID_OK, Messages::OnButtonClose)
+ EVT_BUTTON(wxID_CLOSE, Messages::OnButtonClose)
EVT_BUTTON(wxID_CLEAR, Messages::OnClear)
EVT_BUTTON(wxID_SAVEAS, Messages::OnSaveLog)
warn_attr = new wxTextAttr( *wxBLUE );
dbg_attr = new wxTextAttr( *wxBLACK );
- /* Create the OK button */
- wxButton *ok_button = new wxButton( messages_panel, wxID_OK,
- wxU(_("Close")));
- ok_button->SetDefault();
- /* Create the Clear button */
- wxButton *clear_button = new wxButton( messages_panel, wxID_CLEAR,
- wxU(_("Clear")));
- clear_button->SetDefault();
/* Create the Save Log button */
- wxButton *save_log_button = new wxButton( messages_panel, wxID_SAVEAS,
- wxU(_("Save As...")));
+ wxButton *save_log_button = new wxButton( messages_panel, wxID_SAVEAS );
save_log_button->SetDefault();
+ /* Create the Clear button */
+ wxButton *clear_button = new wxButton( messages_panel, wxID_CLEAR );
+ clear_button->SetDefault();
+
+ /* Create the OK button */
+ wxButton *ok_button = new wxButton( messages_panel, wxID_CLOSE);
+ ok_button->SetDefault();
+
/* Place everything in sizers */
wxBoxSizer *buttons_sizer = new wxBoxSizer( wxHORIZONTAL );
- buttons_sizer->Add( ok_button, 0, wxEXPAND |wxALIGN_LEFT| wxALL, 5 );
- buttons_sizer->Add( clear_button, 0, wxEXPAND |wxALIGN_LEFT| wxALL, 5 );
buttons_sizer->Add( save_log_button, 0, wxEXPAND |wxALIGN_LEFT| wxALL, 5 );
+ buttons_sizer->Add( clear_button, 0, wxEXPAND |wxALIGN_RIGHT| wxALL, 5 );
+ buttons_sizer->Add( ok_button, 0, wxEXPAND |wxALIGN_RIGHT| wxALL, 5 );
buttons_sizer->Add( new wxPanel( this, -1 ), 1, wxALL, 5 );
buttons_sizer->Layout();
wxBoxSizer *main_sizer = new wxBoxSizer( wxVERTICAL );