git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34649
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/statbox.h"
#include "wx/stattext.h"
#include "wx/textctrl.h"
+ #include "wx/msgdlg.h"
#endif
#include "wx/sysopt.h"
if ( s.empty() )
return;
+ s_tip = s;
+
+ if( wxMessageBox( _T("Test multiline tooltip text?"),
+ _T("Widgets sample"),
+ wxYES_NO,
+ this
+ ) == wxYES )
+ {
+ s = _T("#1 ") + s_tip + _T("\n") + _T("#2 ") + s_tip;
+ }
+
WidgetsPage *page = wxStaticCast(m_book->GetCurrentPage(), WidgetsPage);
- page->GetWidget()->SetToolTip(s_tip = s);
+ page->GetWidget()->SetToolTip(s);
wxControl *ctrl2 = page->GetWidget2();
if ( ctrl2 )