make it possible to associate context help text with individual radiobox items

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39676 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-06-11 21:13:13 +00:00
parent dc6588e771
commit dc26eeb36a
9 changed files with 266 additions and 54 deletions

View File

@@ -12,6 +12,13 @@
#include "wx/bitmap.h"
class WXDLLIMPEXP_CORE wxGTKRadioButtonInfo;
#include "wx/list.h"
WX_DECLARE_LIST(wxGTKRadioButtonInfo, wxRadioBoxButtonsInfoList);
//-----------------------------------------------------------------------------
// wxRadioBox
//-----------------------------------------------------------------------------
@@ -107,6 +114,17 @@ public:
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
virtual int GetItemFromPoint( const wxPoint& pt ) const;
#if wxUSE_HELP
// override virtual wxWindow::GetHelpTextAtPoint to use common platform independent
// wxRadioBoxBase::DoGetHelpTextAtPoint from the platform independent
// base class-interface wxRadioBoxBase.
virtual wxString GetHelpTextAtPoint(const wxPoint & pt, wxHelpEvent::Origin origin) const
{
return wxRadioBoxBase::DoGetHelpTextAtPoint( this, pt, origin );
}
#endif // wxUSE_HELP
// implementation
// --------------
@@ -120,9 +138,9 @@ public:
virtual void OnInternalIdle();
bool m_hasFocus,
m_lostFocus;
wxList m_buttons;
bool m_hasFocus,
m_lostFocus;
wxRadioBoxButtonsInfoList m_buttonsInfo;
protected:
#if wxUSE_TOOLTIPS