]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/src/_control.i
Navigate docstring update
[wxWidgets.git] / wxPython / src / _control.i
index f6818657411dc08e56605b4f015f87a0c3edde18..a957574d2adb476ca92abb41f76c4d3dc88202bc 100644 (file)
@@ -27,6 +27,8 @@ DocStr(wxControl,
 A control is generally a small window which processes user input
 and/or displays one or more item of data.", "");
 
+MustHaveApp(wxControl);
+
 class wxControl : public wxWindow
 {
 public:
@@ -35,7 +37,7 @@ public:
 
     DocCtorStr(
         wxControl(wxWindow *parent,
-              wxWindowID id,
+              wxWindowID id=-1,
               const wxPoint& pos=wxDefaultPosition,
               const wxSize& size=wxDefaultSize,
               long style=0,
@@ -51,7 +53,7 @@ __init__ as a plain old wx.Control is not very useful.", "");
 
     DocDeclStr(
         bool , Create(wxWindow *parent,
-                      wxWindowID id,
+                      wxWindowID id=-1,
                       const wxPoint& pos=wxDefaultPosition,
                       const wxSize& size=wxDefaultSize,
                       long style=0,
@@ -75,6 +77,20 @@ __init__ as a plain old wx.Control is not very useful.", "");
         void , SetLabel(const wxString& label),
         "Sets the item's text.", "");
 
+
+//     DocDeclStr(
+//         bool , GetAdjustMinSizeFlag(),
+//         "Returns whether the minsize should be adjusted for this control when
+// `SetLabel` or `SetFont` are called.", "");
+    
+//     DocDeclStr(
+//         void , SetAdjustMinSizeFlag(bool adjust),
+//         "By default controls will readjust their size and minsize when
+// `SetLabel` or `SetFont` are called.  This flag will allow you to
+// control this behavior.", "
+
+// :see: `GetAdjustMinSizeFlag`
+// ");
     
     static wxVisualAttributes
     GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);