]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_scrolbar.i
fixed status bar positioning to work both with and without sizers (patch 1199639...
[wxWidgets.git] / wxPython / src / _scrolbar.i
index 196a8241ef5cf2cb37c0d5cb3df1bd5d783a6e4c..2bcc4eddb53ea5286f68197f7758207660ef30f1 100644 (file)
 
 //---------------------------------------------------------------------------
 
 
 //---------------------------------------------------------------------------
 
-%{
-    DECLARE_DEF_STRING(ScrollBarNameStr);
-%}
+MAKE_CONST_WXSTRING(ScrollBarNameStr);
 
 //---------------------------------------------------------------------------
 %newgroup
 
 
 //---------------------------------------------------------------------------
 %newgroup
 
+MustHaveApp(wxScrollBar);
+
 class wxScrollBar : public wxControl {
 public:
 class wxScrollBar : public wxControl {
 public:
-    %addtofunc wxScrollBar         "self._setOORInfo(self)"
-    %addtofunc wxScrollBar()       ""
+    %pythonAppend wxScrollBar         "self._setOORInfo(self)"
+    %pythonAppend wxScrollBar()       ""
 
     wxScrollBar(wxWindow* parent, wxWindowID id = -1,
                 const wxPoint& pos = wxDefaultPosition,
 
     wxScrollBar(wxWindow* parent, wxWindowID id = -1,
                 const wxPoint& pos = wxDefaultPosition,
@@ -33,7 +33,7 @@ public:
                 long style = wxSB_HORIZONTAL,
                 const wxValidator& validator = wxDefaultValidator,
                 const wxString& name = wxPyScrollBarNameStr);
                 long style = wxSB_HORIZONTAL,
                 const wxValidator& validator = wxDefaultValidator,
                 const wxString& name = wxPyScrollBarNameStr);
-    %name(PreScrollBar)wxScrollBar();
+    %RenameCtor(PreScrollBar, wxScrollBar());
 
     bool Create(wxWindow* parent, wxWindowID id = -1,
                 const wxPoint& pos = wxDefaultPosition,
 
     bool Create(wxWindow* parent, wxWindowID id = -1,
                 const wxPoint& pos = wxDefaultPosition,
@@ -51,9 +51,16 @@ public:
     bool IsVertical() const { return (m_windowStyle & wxVERTICAL) != 0; }
 
     virtual void SetThumbPosition(int viewStart);
     bool IsVertical() const { return (m_windowStyle & wxVERTICAL) != 0; }
 
     virtual void SetThumbPosition(int viewStart);
-    virtual void SetScrollbar(int position, int thumbSize,
-                              int range, int pageSize,
-                              bool refresh = True);
+    
+    DocDeclStr(
+        virtual void , SetScrollbar(int position, int thumbSize,
+                                    int range, int pageSize,
+                                    bool refresh = true),
+        "", "");
+    
+
+    static wxVisualAttributes
+    GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
 };
 
 //---------------------------------------------------------------------------
 };
 
 //---------------------------------------------------------------------------