added Get/SetItemToolTip() (and implemented them for MSW) to allow setting tooltips for the individual radiobox items

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39030 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-05-04 16:08:56 +00:00
parent c009bf3e9f
commit c670c85582
7 changed files with 187 additions and 5 deletions

View File

@@ -193,6 +193,18 @@ Finds a button matching the given string, returning the position if found, or
Returns the number of columns in the radiobox.
\membersection{wxRadioBox::GetItemToolTip}\label{wxradioboxgetitemtooltip}
\constfunc{wxToolTip *}{GetItemToolTip}{\param{unsigned int}{ item}}
Returns the tooltip associated with the specified \arg{item} if any or \NULL.
\wxheading{See also}
\helpref{SetItemToolTip}{wxradioboxsetitemtooltip},\\
\helpref{wxWindow::GetToolTip}{wxwindowgettooltip}
\membersection{wxRadioBox::GetLabel}\label{wxradioboxgetlabel}
\constfunc{wxString}{GetLabel}{\void}
@@ -327,6 +339,24 @@ a wxEVT\_COMMAND\_RADIOBOX\_SELECTED event to get emitted.
\docparam{string}{The label of the button to select.}
\membersection{wxRadioBox::SetItemToolTip}\label{wxradioboxsetitemtooltip}
\func{void}{SetItemToolTip}{\param{unsigned int}{ item}, \param{const wxString\& }{text}}
Sets the tooltip text for the specified item in the radio group.
\wxheading{Parameters}
\docparam{item}{Index of the item the tooltip will be shown for.}
\docparam{text}{Tooltip text for the item, the tooltip is removed if empty.}
\wxheading{See also}
\helpref{GetItemToolTip}{wxradioboxgetitemtooltip},\\
\helpref{wxWindow::SetToolTip}{wxwindowsettooltip}
\membersection{wxRadioBox::Show}\label{wxradioboxshow}
\func{virtual bool}{Show}{\param{const bool}{ show = {\tt true}}}