- The first form returns the control's label without the mnemonics characters (if
- any)
- and without the markup (if the control has @c wxST_MARKUP style).
- The second (static) version returns the given @a label string without the
- mnemonics
- characters (if any) and without the markup.
+ This method returns the control's label without the mnemonics characters
+ (if any) and without the markup (if the control has @c wxST_MARKUP style).
+ */
+ wxString GetLabelText() const;
+
+ /**
+ This overload returns the given @a label string without the
+ mnemonics characters (if any) and without the markup.
+ */
+ static wxString GetLabelText(const wxString& label);
+
+ /**
+ Returns @true if the window styles for this control contains one of the
+ @c wxST_ELLIPSIZE_START, @c wxST_ELLIPSIZE_MIDDLE or @c wxST_ELLIPSIZE_END styles.
+ */
+ bool IsEllipsized() const;
+
+ /**
+ Removes the markup accepted by wxStaticText when the @c wxST_MARKUP style is used,
+ and then returns the cleaned string.
+
+ See SetLabel() for more info about the markup.