mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Adding JamesAC's new ToolTips functionality.
Minor fix to the Rainmeter installer Minor changes to RainBrowser and RainThemes
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user