mirror of https://github.com/BOINC/boinc.git
- 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:
parent
5c55a4c732
commit
0e65b2d41a
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -183,9 +183,6 @@ public:
|
|||
private:
|
||||
std::vector<CProjectListItem*> m_Items;
|
||||
|
||||
#ifdef __WXMSW__
|
||||
wxTipWindow* m_pTipWindow;
|
||||
#endif
|
||||
#ifdef __WXMAC__
|
||||
CProjectListCtrlAccessible* m_accessible;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue