X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e27ef576eafbddaf337ca059c299184080bd5cb..814028444d682b23af3809227cd485f4bebc1286:/samples/aui/auidemo.cpp diff --git a/samples/aui/auidemo.cpp b/samples/aui/auidemo.cpp index 08d5d136d9..9654e9ae49 100644 --- a/samples/aui/auidemo.cpp +++ b/samples/aui/auidemo.cpp @@ -1644,6 +1644,7 @@ wxAuiNotebook* MyFrame::CreateNotebook() wxBitmap page_bmp = wxArtProvider::GetBitmap(wxART_NORMAL_FILE, wxART_OTHER, wxSize(16,16)); ctrl->AddPage(CreateHTMLCtrl(ctrl), wxT("Welcome to wxAUI") , false, page_bmp); + ctrl->SetPageToolTip(0, "Welcome to wxAUI (this is a page tooltip)"); wxPanel *panel = new wxPanel( ctrl, wxID_ANY ); wxFlexGridSizer *flex = new wxFlexGridSizer( 4, 2, 0, 0 ); @@ -1682,6 +1683,8 @@ wxAuiNotebook* MyFrame::CreateNotebook() ctrl->AddPage( new wxTextCtrl( ctrl, wxID_ANY, wxT("Some more text"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxNO_BORDER) , wxT("wxTextCtrl 7 (longer title)") ); + ctrl->SetPageToolTip(ctrl->GetPageCount()-1, + "wxTextCtrl 7: and the tooltip message can be even longer!"); ctrl->AddPage( new wxTextCtrl( ctrl, wxID_ANY, wxT("Some more text"), wxDefaultPosition, wxDefaultSize, wxTE_MULTILINE|wxNO_BORDER) , wxT("wxTextCtrl 8") );