Applied patch [ 652336 ] Add tooltip support to wxUniv on Windows
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18537 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,6 +36,8 @@
|
||||
#include "wx/validate.h"
|
||||
#endif
|
||||
|
||||
#include "wx/tooltip.h"
|
||||
|
||||
#include "wx/univ/theme.h"
|
||||
#include "wx/univ/renderer.h"
|
||||
#include "wx/univ/inphand.h"
|
||||
@@ -341,6 +343,23 @@ void wxRadioBox::SetLabel(const wxString& label)
|
||||
wxStaticBox::SetLabel(label);
|
||||
}
|
||||
|
||||
#if wxUSE_TOOLTIPS
|
||||
void wxRadioBox::DoSetToolTip(wxToolTip *tooltip)
|
||||
{
|
||||
wxControl::DoSetToolTip(tooltip);
|
||||
|
||||
// Also set them for all Radio Buttons
|
||||
size_t count = m_buttons.GetCount();
|
||||
for ( size_t n = 0; n < count; n++ )
|
||||
{
|
||||
if (tooltip)
|
||||
m_buttons[n]->SetToolTip(tooltip->GetTip());
|
||||
else
|
||||
m_buttons[n]->SetToolTip(NULL);
|
||||
}
|
||||
}
|
||||
#endif // wxUSE_TOOLTIPS
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// buttons positioning
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user