better docs for Get/SetLabel methods
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63786 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -109,7 +109,8 @@ public:
|
|||||||
Returns the control's label without mnemonics.
|
Returns the control's label without mnemonics.
|
||||||
|
|
||||||
Note that because of the stripping of the mnemonics the returned string may differ
|
Note that because of the stripping of the mnemonics the returned string may differ
|
||||||
from the string which was passed to SetLabel().
|
from the string which was passed to SetLabel() but should always be the same which
|
||||||
|
was passed to SetLabelText().
|
||||||
*/
|
*/
|
||||||
wxString GetLabelText() const;
|
wxString GetLabelText() const;
|
||||||
|
|
||||||
|
@@ -92,16 +92,25 @@ public:
|
|||||||
/**
|
/**
|
||||||
Returns the contents of the control.
|
Returns the contents of the control.
|
||||||
|
|
||||||
Note that the returned string may contain both the mnemonics (@& characters),
|
Note that the returned string may contain both mnemonics (@& characters),
|
||||||
if any, and markup tags, if any.
|
and markup tags, if they were passed to the SetLabel() function.
|
||||||
|
|
||||||
Use GetLabelText() if only the label text is needed.
|
Use GetLabelText() if only the label text, without mnemonics and without
|
||||||
|
markup if the @c wxST_MARKUP style is set, is needed.
|
||||||
|
|
||||||
|
Also note that the returned string is always the string which was passed to
|
||||||
|
SetLabel() but may be different from the string passed to SetLabelText()
|
||||||
|
(since this last one escapes mnemonic characters and eventually markup).
|
||||||
*/
|
*/
|
||||||
wxString GetLabel() const;
|
wxString GetLabel() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
This method returns the control's label without the mnemonics characters
|
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).
|
(if any) and without the markup (if the control has the @c wxST_MARKUP style).
|
||||||
|
|
||||||
|
Note that because of the stripping of the mnemonics and markup the returned
|
||||||
|
string may differ from the string which was passed to SetLabel() but should
|
||||||
|
always be the same which was passed to SetLabelText().
|
||||||
*/
|
*/
|
||||||
wxString GetLabelText() const;
|
wxString GetLabelText() const;
|
||||||
|
|
||||||
@@ -119,9 +128,9 @@ public:
|
|||||||
Sets the static text label and updates the controls size to exactly fit the
|
Sets the static text label and updates the controls size to exactly fit the
|
||||||
label unless the control has @c wxST_NO_AUTORESIZE flag.
|
label unless the control has @c wxST_NO_AUTORESIZE flag.
|
||||||
|
|
||||||
This function allows to set decorated static label text on platforms which
|
This function allows to set decorated static label text, when the @c wxST_MARKUP
|
||||||
support it (currently only GTK+ 2). For the other platforms, the markup is
|
style is used, on those platforms which support it (currently only GTK+ 2).
|
||||||
ignored.
|
For the other platforms or when @c wxST_MARKUP is not used, the markup is ignored.
|
||||||
|
|
||||||
The supported tags are:
|
The supported tags are:
|
||||||
<TABLE>
|
<TABLE>
|
||||||
@@ -219,10 +228,12 @@ public:
|
|||||||
Sets the control's label to exactly the given string.
|
Sets the control's label to exactly the given string.
|
||||||
|
|
||||||
Unlike SetLabel(), this function shows exactly the @a text passed to it
|
Unlike SetLabel(), this function shows exactly the @a text passed to it
|
||||||
in the control, without interpreting ampersands in it in any way.
|
in the control, without interpreting ampersands in it in any way and,
|
||||||
Notice that it means that the control can't have any mnemonic defined
|
if @c wxST_MARKUP is used, without interpreting markup tags.
|
||||||
|
Notice that it means that the control can't have any mnemonic nor markup defined
|
||||||
for it using this function.
|
for it using this function.
|
||||||
|
|
||||||
|
@see EscapeMarkup()
|
||||||
*/
|
*/
|
||||||
virtual void SetLabelText(const wxString& text);
|
virtual void SetLabelText(const wxString& text);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user