]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/control.h
build fixes for wxUSE_IPV6==1 under Windows
[wxWidgets.git] / include / wx / control.h
index a7c6496e72975c87c7049e0f08559db8be8aa6e7..2bf0c472ad1641e23aafe0e2e44d6af336a62ad9 100644 (file)
 
 extern WXDLLIMPEXP_DATA_CORE(const char) wxControlNameStr[];
 
+enum wxEllipsizeMode
+{
+    wxELLIPSIZE_START,
+    wxELLIPSIZE_MIDDLE,
+    wxELLIPSIZE_END
+};
+
 // ----------------------------------------------------------------------------
 // wxControl is the base class for all controls
 // ----------------------------------------------------------------------------
@@ -67,6 +74,10 @@ public:
 
     // static utilities:
 
+    // replaces parts of the string with ellipsis if needed
+    static wxString Ellipsize(const wxString& label, const wxDC& dc,
+                              wxEllipsizeMode mode, int maxWidth);
+
     // get the string without mnemonic characters ('&')
     static wxString GetLabelText(const wxString& label);