]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/vlbox.h
Allow wxStaticText to have a custom fg without a custom bg
[wxWidgets.git] / include / wx / vlbox.h
index f3ce27a421c1641813be50c7469315e3eaa45602..598fa2e058570cfde48864b2ce8aece0c1033f2f 100644 (file)
@@ -192,7 +192,15 @@ public:
     virtual void ApplyParentThemeBackground(const wxColour& WXUNUSED(bg))
         { /* do nothing */ }
 
-    
+
+    virtual wxVisualAttributes GetDefaultAttributes() const
+    {
+        return GetClassDefaultAttributes(GetWindowVariant());
+    }
+
+    static wxVisualAttributes
+    GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
+
 protected:
     // the derived class must implement this function to actually draw the item
     // with the given index on the provided DC