diff --git a/common/widgets/bitmap_button.cpp b/common/widgets/bitmap_button.cpp
index 9f98d9ac08..dd3d397bd8 100644
--- a/common/widgets/bitmap_button.cpp
+++ b/common/widgets/bitmap_button.cpp
@@ -42,8 +42,10 @@ BITMAP_BUTTON::BITMAP_BUTTON( wxWindow* aParent, wxWindowID aId, const wxPoint&
Bind( wxEVT_PAINT, &BITMAP_BUTTON::OnPaint, this );
Bind( wxEVT_LEFT_UP, &BITMAP_BUTTON::OnLeftButtonUp, this );
Bind( wxEVT_LEFT_DOWN, &BITMAP_BUTTON::OnLeftButtonDown, this );
- Bind( wxEVT_LEAVE_WINDOW, &BITMAP_BUTTON::OnMouseLeave, this );
- Bind( wxEVT_ENTER_WINDOW, &BITMAP_BUTTON::OnMouseEnter, this );
+ Bind( wxEVT_LEAVE_WINDOW, &BITMAP_BUTTON::OnLeave, this );
+ Bind( wxEVT_ENTER_WINDOW, &BITMAP_BUTTON::OnEnter, this );
+ Bind( wxEVT_KILL_FOCUS, &BITMAP_BUTTON::OnLeave, this );
+ Bind( wxEVT_SET_FOCUS, &BITMAP_BUTTON::OnEnter, this );
}
@@ -74,7 +76,7 @@ void BITMAP_BUTTON::SetDisabledBitmap( const wxBitmap& aBmp )
}
-void BITMAP_BUTTON::OnMouseLeave( wxMouseEvent& aEvent )
+void BITMAP_BUTTON::OnLeave( wxEvent& aEvent )
{
clearFlag( wxCONTROL_CURRENT );
Refresh();
@@ -83,7 +85,7 @@ void BITMAP_BUTTON::OnMouseLeave( wxMouseEvent& aEvent )
}
-void BITMAP_BUTTON::OnMouseEnter( wxMouseEvent& aEvent )
+void BITMAP_BUTTON::OnEnter( wxEvent& aEvent )
{
setFlag( wxCONTROL_CURRENT );
Refresh();
diff --git a/include/widgets/bitmap_button.h b/include/widgets/bitmap_button.h
index 4ff0ed9eca..1abde2945c 100644
--- a/include/widgets/bitmap_button.h
+++ b/include/widgets/bitmap_button.h
@@ -80,8 +80,8 @@ public:
void Check( bool aCheck = true );
protected:
- void OnMouseLeave( wxMouseEvent& aEvent );
- void OnMouseEnter( wxMouseEvent& aEvent );
+ void OnLeave( wxEvent& aEvent );
+ void OnEnter( wxEvent& aEvent );
void OnLeftButtonUp( wxMouseEvent& aEvent );
void OnLeftButtonDown( wxMouseEvent& aEvent );
void OnPaint( wxPaintEvent& aEvent );
diff --git a/kicad/dialogs/panel_kicad_launcher.h b/kicad/dialogs/panel_kicad_launcher.h
index 5e42d6d012..71d74ef413 100644
--- a/kicad/dialogs/panel_kicad_launcher.h
+++ b/kicad/dialogs/panel_kicad_launcher.h
@@ -33,8 +33,6 @@ public:
void CreateLaunchers();
- wxTextCtrl* GetMessagesBox() const { return m_messagesBox; }
-
private:
TOOL_MANAGER* m_toolManager;
diff --git a/kicad/dialogs/panel_kicad_launcher_base.cpp b/kicad/dialogs/panel_kicad_launcher_base.cpp
index 4de218e3cf..905b3eb928 100644
--- a/kicad/dialogs/panel_kicad_launcher_base.cpp
+++ b/kicad/dialogs/panel_kicad_launcher_base.cpp
@@ -11,6 +11,9 @@
PANEL_KICAD_LAUNCHER_BASE::PANEL_KICAD_LAUNCHER_BASE( wxWindow* parent, wxWindowID id, const wxPoint& pos, const wxSize& size, long style, const wxString& name ) : wxPanel( parent, id, pos, size, style, name )
{
+ wxBoxSizer* bSizer2;
+ bSizer2 = new wxBoxSizer( wxVERTICAL );
+
m_mainSizer = new wxBoxSizer( wxVERTICAL );
m_toolsSizer = new wxGridBagSizer( 5, 20 );
@@ -23,21 +26,13 @@ PANEL_KICAD_LAUNCHER_BASE::PANEL_KICAD_LAUNCHER_BASE( wxWindow* parent, wxWindow
m_mainSizer->Add( 0, 20, 0, wxEXPAND, 5 );
- wxStaticBoxSizer* sbSizerMessages;
- sbSizerMessages = new wxStaticBoxSizer( new wxStaticBox( this, wxID_ANY, _("Messages") ), wxVERTICAL );
- m_messagesBox = new wxTextCtrl( sbSizerMessages->GetStaticBox(), wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxTE_READONLY );
- m_messagesBox->SetMinSize( wxSize( -1,60 ) );
-
- sbSizerMessages->Add( m_messagesBox, 1, wxALL|wxEXPAND, 5 );
+ bSizer2->Add( m_mainSizer, 1, wxEXPAND|wxLEFT, 50 );
- m_mainSizer->Add( sbSizerMessages, 1, wxEXPAND|wxLEFT|wxRIGHT, 5 );
-
-
- this->SetSizer( m_mainSizer );
+ this->SetSizer( bSizer2 );
this->Layout();
- m_mainSizer->Fit( this );
+ bSizer2->Fit( this );
}
PANEL_KICAD_LAUNCHER_BASE::~PANEL_KICAD_LAUNCHER_BASE()
diff --git a/kicad/dialogs/panel_kicad_launcher_base.fbp b/kicad/dialogs/panel_kicad_launcher_base.fbp
index 34b2d843be..94efd23d98 100644
--- a/kicad/dialogs/panel_kicad_launcher_base.fbp
+++ b/kicad/dialogs/panel_kicad_launcher_base.fbp
@@ -51,110 +51,43 @@
wxTAB_TRAVERSAL