Adding JamesAC's new ToolTips functionality.

Minor fix to the Rainmeter installer
Minor changes to RainBrowser and RainThemes
This commit is contained in:
jsmorley
2010-07-17 00:06:24 +00:00
parent a52758f9d2
commit ff153f3f86
6 changed files with 207 additions and 5 deletions

View File

@ -333,6 +333,11 @@ void CMeterWindow::Refresh(bool init, bool all)
std::list<CMeter*>::iterator j = m_Meters.begin();
for( ; j != m_Meters.end(); ++j)
{
if ((*j)->GetToolTipHandle() != NULL)
{
DestroyWindow((*j)->GetToolTipHandle());
(*j)->SetToolTipHandle(NULL);
}
delete (*j);
}
m_Meters.clear();
@ -1840,6 +1845,11 @@ void CMeterWindow::ReadSkin()
}
meter->ReadConfig(strSection.c_str());
if (!meter->GetToolTipText().empty())
{
meter->CreateToolTip(this);
}
}
}
catch (CError& error)
@ -2320,6 +2330,15 @@ void CMeterWindow::Update(bool nodraw)
Redraw();
}
j = m_Meters.begin();
for ( ; j != m_Meters.end(); ++j)
{
if ((*j)->GetToolTipHandle() != NULL)
{
(*j)->UpdateToolTip();
}
}
// Check for transitions and start the timer if necessary
bool bActiveTransition = false;
j = m_Meters.begin();