]> git.saurik.com Git - wxWidgets.git/commitdiff
Added wxCLIP_CHILDREN style (mainly for getting rid of flicker), other minor mods
authorJulian Smart <julian@anthemion.co.uk>
Mon, 22 Jun 1998 22:27:14 +0000 (22:27 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 22 Jun 1998 22:27:14 +0000 (22:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@134 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/defs.h
include/wx/generic/splitter.h
include/wx/menuitem.h
include/wx/msw/setup.h
include/wx/msw/statbr95.h

index 0924a27fdbe07fe1f6f0a1b04c5910f025a6f6de..3b77dd23c4ac07d5e40952d494e5627e355586fa 100644 (file)
@@ -312,8 +312,11 @@ typedef void (*wxFunction) (wxObject&, wxEvent&);
                                  // OBSOLETE - use wxNO_CTL3D instead
 #define wxNO_3D             0x00800000
                                  // Override CTL3D or native 3D styles for children
-#define wxOVERRIDE_KEY_TRANSLATIONS 0x00400000
-                                 // TODO: do we need this??? (Motif only)
+#define wxCLIP_CHILDREN     0x00400000
+                                 // Clip children when painting, which reduces flicker in
+                                 // e.g. frames and splitter windows, but can't be used in
+                                 // a panel where a static box must be 'transparent' (panel
+                                 // paints the background for it)
 
 // Add this style to a panel to get tab traversal working
 // outside of dialogs.
@@ -343,7 +346,7 @@ typedef void (*wxFunction) (wxObject&, wxEvent&);
 #define wxDIALOG_MODAL      0x0020
 #define wxDIALOG_MODELESS   0x0000
 
-#define wxDEFAULT_FRAME_STYLE    (wxRESIZE_BORDER | wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxTHICK_FRAME | wxSYSTEM_MENU | wxCAPTION)
+#define wxDEFAULT_FRAME_STYLE    (wxRESIZE_BORDER | wxMINIMIZE_BOX | wxMAXIMIZE_BOX | wxTHICK_FRAME | wxSYSTEM_MENU | wxCAPTION | wxCLIP_CHILDREN)
 
 #if WXWIN_COMPATIBILITY
 #define wxDEFAULT_FRAME wxDEFAULT_FRAME_STYLE
@@ -541,7 +544,7 @@ typedef void (*wxFunction) (wxObject&, wxEvent&);
  * wxStatusBar95 flags
  */
 
-#define wxSB_SIZEGRIP       0x0002
+#define wxST_SIZEGRIP       0x0002
 
 /*
  * GDI descriptions
index 0a41b11bdc03a5768fe9dca4f5ee9b6c5e1e7a7d..2502c0222e4917370bfffa2b739b754380d10b3d 100644 (file)
@@ -58,7 +58,7 @@ class WXDLLEXPORT wxSplitterWindow: public wxWindow
 
     // Normal constructor
     wxSplitterWindow(wxWindow *parent, const wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition,
-        const wxSize& size = wxDefaultSize, const long style = wxSP_3D, const wxString& name = "splitter");
+        const wxSize& size = wxDefaultSize, const long style = wxSP_3D|wxCLIP_CHILDREN, const wxString& name = "splitter");
     ~wxSplitterWindow(void);
 
     // Gets the only or left/top pane
index 5de85d5e241760de74064c1f4363e197037d3194..34178c67d11a08da0664666cf85ce6f271e98533 100644 (file)
@@ -16,6 +16,8 @@
 // headers
 // ----------------------------------------------------------------------------
 
+#include "wx/setup.h"
+
 // an exception to the general rule that a normal header doesn't include other
 // headers - only because ownerdrw.h is not always included and I don't want
 // to write #ifdef's everywhere...
index 700721375835954fb1b47fbe10dab8e21532f1c1..2a3cf3da035f4b7340ee980c5e72457ab935794c 100644 (file)
 #define USE_PENWINDOWS 0
                                     // Set to 1 to use PenWindows
 
-#define USE_OWNER_DRAWN             1
+#define USE_OWNER_DRAWN             0
                                     // Owner-drawn menus and listboxes
 
 #define USE_NATIVE_STATUSBAR        1
index a6a6acb4be7354c06a6962e6e6813a29cfeedec1..51006b6b85dabb5b4c4cc739063aa7ca0eec7259 100644 (file)
@@ -21,10 +21,10 @@ class WXDLLEXPORT wxStatusBar95 : public wxStatusBar
 public:
   // ctors
   wxStatusBar95();
-  wxStatusBar95(wxWindow *parent, wxWindowID id = -1, long style = wxSB_SIZEGRIP);
+  wxStatusBar95(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
 
   // create status line
-  bool Create(wxWindow *parent, wxWindowID id = -1, long style = wxSB_SIZEGRIP);
+  bool Create(wxWindow *parent, wxWindowID id = -1, long style = wxST_SIZEGRIP);
 
   // a status line can have several (<256) fields numbered from 0
   virtual void SetFieldsCount(int number = 1, const int *widths = NULL);