Remove tooltip tracking code from wxOSX
This doesn't seem to be necessary and is actually actively harmful, as this code prevented tooltips from working with non-native windows, such as those used inside wxSplitterWindow in the splitter sample. Just remove this code entirely and add SetToolTip() calls to the sample to show that they do work now. Closes https://github.com/wxWidgets/wxWidgets/pull/1978 Closes #14220.
This commit is contained in:
@@ -292,9 +292,11 @@ MyFrame::MyFrame()
|
||||
m_left = new MyCanvas(m_splitter, true);
|
||||
m_left->SetBackgroundColour(*wxRED);
|
||||
m_left->SetCursor(wxCursor(wxCURSOR_MAGNIFIER));
|
||||
m_left->SetToolTip("This is the left window");
|
||||
|
||||
m_right = new MyCanvas(m_splitter, false);
|
||||
m_right->SetBackgroundColour(*wxCYAN);
|
||||
m_right->SetToolTip("And this is the window on the right");
|
||||
#else // for testing kbd navigation inside the splitter
|
||||
m_left = new wxTextCtrl(m_splitter, wxID_ANY, "first text");
|
||||
m_right = new wxTextCtrl(m_splitter, wxID_ANY, "second text");
|
||||
|
Reference in New Issue
Block a user