← Back to team overview

kicad-developers team mailing list archive

[PATCH] kicad: tree_project_frame: fixup drawframe style

 

wxNO_BORDER and wxSW_3D seem incompatible and the border flickers
when the tree frame gets resized. Using KICAD_DEFAULT_DRAWFRAME_STYLE
avoids this.

Signed-off-by: Clemens Koller <cko@xxxxxxxxx>
>From a3ddad9e9a0efc92c26385ebda34713eb363b2ba Mon Sep 17 00:00:00 2001
From: Clemens Koller <cko@xxxxxxxxx>
Date: Wed, 8 Feb 2017 22:10:09 +0100
Subject: kicad: tree_project_frame: fixup drawframe style.

wxNO_BORDER and wxSW_3D seem incompatible and the border flickers
when the tree frame gets resized. Using KICAD_DEFAULT_DRAWFRAME_STYLE
avoids this.

Signed-off-by: Clemens Koller <cko@xxxxxxxxx>

diff --git a/kicad/tree_project_frame.cpp b/kicad/tree_project_frame.cpp
index a00bd98ee..54ac36e52 100644
--- a/kicad/tree_project_frame.cpp
+++ b/kicad/tree_project_frame.cpp
@@ -3,7 +3,7 @@
  *
  * Copyright (C) 2012 SoftPLC Corporation, Dick Hollenbeck <dick@xxxxxxxxxxx>
  * Copyright (C) 2012 Jean-Pierre Charras, jp.charras at wanadoo.fr
- * Copyright (C) 1992-2016 KiCad Developers, see change_log.txt for contributors.
+ * Copyright (C) 1992-2017 KiCad Developers, see change_log.txt for contributors.
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
@@ -35,6 +35,8 @@
 #include <wx/stdpaths.h>
 #include <wx/string.h>
 
+#include <wxstruct.h>
+
 #include <bitmaps.h>
 #include <gestfich.h>
 #include <menus_helpers.h>
@@ -127,7 +129,7 @@ TREE_PROJECT_FRAME::TREE_PROJECT_FRAME( KICAD_MANAGER_FRAME* parent ) :
                         ID_LEFT_FRAME,
                         wxDefaultPosition,
                         wxDefaultSize,
-                        wxNO_BORDER | wxSW_3D | wxTAB_TRAVERSAL )
+                        KICAD_DEFAULT_DRAWFRAME_STYLE | wxTAB_TRAVERSAL )
 {
     m_Parent = parent;
     m_TreeProject = NULL;

Follow ups