Changed ToolTip function to allow using %1, %2 etc. as appropriate for various meter types:

Line, String: %1, %2, %3, ...
Histogram: %1, %2
Others: %1
This commit is contained in:
jsmorley
2010-09-10 17:29:30 +00:00
parent 1343a3ae9e
commit eee8d9bb1c
8 changed files with 103 additions and 17 deletions

View File

@ -1985,11 +1985,6 @@ bool CMeterWindow::ReadSkin()
}
meter->ReadConfig(strSection.c_str());
if (!meter->GetToolTipText().empty())
{
meter->CreateToolTip(this);
}
}
}
catch (CError& error)
@ -2021,13 +2016,18 @@ bool CMeterWindow::ReadSkin()
}
else
{
// Bind the meters to the measures
// Bind the meters to the measures and create tooltips
std::list<CMeter*>::const_iterator j = m_Meters.begin();
for( ; j != m_Meters.end(); ++j)
{
try
{
(*j)->BindMeasure(m_Measures);
if (!(*j)->GetToolTipText().empty())
{
(*j)->CreateToolTip(this);
}
}
catch (CError& error)
{