]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/slider.h
fix assert failure if NULL size pointer was passed to Request() (as happened in the...
[wxWidgets.git] / interface / wx / slider.h
index 18647f5a84b2c03b26d815340bc26d217683f7c2..82f6384e9f2759c1bd2278e97527c6f9bf51f859 100644 (file)
 
     @library{wxcore}
     @category{ctrl}
-    <!-- @appearance{slider.png} -->
+    @appearance{slider.png}
 
     @see @ref overview_eventhandling, wxScrollBar
 */
@@ -132,6 +132,8 @@ public:
             Minimum slider position.
         @param maxValue
             Maximum slider position.
+        @param pos
+            Window position. If wxDefaultPosition is specified then a default position is chosen.
         @param size
             Window size. If wxDefaultSize is specified then a default size is chosen.
         @param style
@@ -145,11 +147,11 @@ public:
     */
     wxSlider(wxWindow* parent, wxWindowID id, int value,
              int minValue, int maxValue,
-             const wxPoint& point = wxDefaultPosition,
+             const wxPoint& pos = wxDefaultPosition,
              const wxSize& size = wxDefaultSize,
              long style = wxSL_HORIZONTAL,
              const wxValidator& validator = wxDefaultValidator,
-             const wxString& name = "slider");
+             const wxString& name = wxSliderNameStr);
 
     /**
         Destructor, destroying the slider.
@@ -174,13 +176,11 @@ public:
         Used for two-step slider construction.
         See wxSlider() for further details.
     */
-    bool Create(wxWindow* parent, wxWindowID id, int value,
-                int minValue, int maxValue,
-                const wxPoint& point = wxDefaultPosition,
-                const wxSize& size = wxDefaultSize,
-                long style = wxSL_HORIZONTAL,
+    bool Create(wxWindow* parent, wxWindowID id, int value, int minValue,
+                int maxValue, const wxPoint& point = wxDefaultPosition,
+                const wxSize& size = wxDefaultSize, long style = wxSL_HORIZONTAL,
                 const wxValidator& validator = wxDefaultValidator,
-                const wxString& name = "slider");
+                const wxString& name = wxSliderNameStr);
 
     /**
         Returns the line size.