]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/editlbox.h
avoid infinite recursion for richtooltops, (hopefully) fixes #15070
[wxWidgets.git] / interface / wx / editlbox.h
index 024b1aabe297df4f921d7e7d0b783d53637a65ab..7a5788ea6cf7d87af93912c85ed513314b78f6a1 100644 (file)
@@ -3,9 +3,15 @@
 // Purpose:     interface of wxEditableListBox
 // Author:      wxWidgets team
 // RCS-ID:      $Id$
 // Purpose:     interface of wxEditableListBox
 // Author:      wxWidgets team
 // RCS-ID:      $Id$
-// Licence:     wxWindows license
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 /////////////////////////////////////////////////////////////////////////////
 
+#define wxEL_ALLOW_NEW          0x0100
+#define wxEL_ALLOW_EDIT         0x0200
+#define wxEL_ALLOW_DELETE       0x0400
+#define wxEL_NO_REORDER         0x0800
+#define wxEL_DEFAULT_STYLE      (wxEL_ALLOW_NEW | wxEL_ALLOW_EDIT | wxEL_ALLOW_DELETE)
+
 /**
     @class wxEditableListBox
 
 /**
     @class wxEditableListBox
 
@@ -51,9 +57,10 @@ public:
             The text shown just before the list control.
         @param pos
             Window position.
             The text shown just before the list control.
         @param pos
             Window position.
+            If ::wxDefaultPosition is specified then a default position is chosen.
         @param size
         @param size
-            Window size. If wxDefaultSize is specified then the window is sized
-            appropriately.
+            Window size. 
+            If ::wxDefaultSize is specified then the window is sized appropriately.
         @param style
             Window style. See wxEditableListBox.
         @param name
         @param style
             Window style. See wxEditableListBox.
         @param name
@@ -66,7 +73,7 @@ public:
                       const wxPoint& pos = wxDefaultPosition,
                       const wxSize& size = wxDefaultSize,
                       long style = wxEL_DEFAULT_STYLE,
                       const wxPoint& pos = wxDefaultPosition,
                       const wxSize& size = wxDefaultSize,
                       long style = wxEL_DEFAULT_STYLE,
-                      const wxString& name = "editableListBox");
+                      const wxString& name = wxEditableListBoxNameStr);
 
     /**
         Destructor, destroying the list box.
 
     /**
         Destructor, destroying the list box.
@@ -77,12 +84,11 @@ public:
         Creates the editable listbox for two-step construction.
         See wxEditableListBox() for further details.
     */
         Creates the editable listbox for two-step construction.
         See wxEditableListBox() for further details.
     */
-    bool Create(wxWindow* parent, wxWindowID id,
-                const wxString& label,
+    bool Create(wxWindow* parent, wxWindowID id, const wxString& label,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 long style = wxEL_DEFAULT_STYLE,
                 const wxPoint& pos = wxDefaultPosition,
                 const wxSize& size = wxDefaultSize,
                 long style = wxEL_DEFAULT_STYLE,
-                const wxString& name = "editableListBox");
+                const wxString& name = wxEditableListBoxNameStr);
 
     /**
         Replaces current contents with given strings.
 
     /**
         Replaces current contents with given strings.