- MGR: Prevent flicker and lack of display by using the regular tooltip

for the Project List control on Windows.
        
    clientgui/
        ProjectListCtrl.cpp, .h

svn path=/trunk/boinc/; revision=20844
This commit is contained in:
Rom Walton 2010-03-11 16:19:33 +00:00
parent 5c55a4c732
commit 0e65b2d41a
3 changed files with 7 additions and 18 deletions

View File

@ -1820,3 +1820,10 @@ Charlie 11 Mar 2010
clientgui/
MainDocument.cpp
Rom 11 Mar 2010
- MGR: Prevent flicker and lack of display by using the regular tooltip
for the Project List control on Windows.
clientgui/
ProjectListCtrl.cpp, .h

View File

@ -422,9 +422,6 @@ bool CProjectListCtrl::Create( wxWindow* parent )
{
////@begin CProjectListCtrl member initialisation
////@end CProjectListCtrl member initialisation
#ifdef __WXMSW__
m_pTipWindow = NULL;
#endif
////@begin CProjectListCtrl creation
wxHtmlListBox::Create( parent, ID_PROJECTLISTCTRL, wxDefaultPosition, wxDefaultSize,
@ -517,20 +514,8 @@ void CProjectListCtrl::OnHover( wxHtmlCellEvent& event )
strTooltip = m_Items[i]->GetDescription();
}
#ifdef __WXMSW__
wxRect rc;
rc.SetTop(pCell->GetAbsPos().x);
rc.SetLeft(pCell->GetAbsPos().y);
rc.SetHeight(pCell->GetHeight());
rc.SetWidth(pCell->GetWidth());
m_pTipWindow = new wxTipWindow(this, strTooltip, 350, &m_pTipWindow, &rc);
#else
// Set Tooltip to the item currently being hovered over
SetToolTip(strTooltip);
#endif
event.Skip();
}

View File

@ -183,9 +183,6 @@ public:
private:
std::vector<CProjectListItem*> m_Items;
#ifdef __WXMSW__
wxTipWindow* m_pTipWindow;
#endif
#ifdef __WXMAC__
CProjectListCtrlAccessible* m_accessible;
#endif