Show units in tooltips
This commit is contained in:
committed by
Artur Wieczorek
parent
4c11ab63c1
commit
ca1e086225
@@ -5111,6 +5111,12 @@ bool wxPropertyGrid::HandleMouseMove( int x, unsigned int y,
|
|||||||
if ( imageSize.x > 0 )
|
if ( imageSize.x > 0 )
|
||||||
imageWidth = imageSize.x;
|
imageWidth = imageSize.x;
|
||||||
tipString = m_propHover->GetValueAsString();
|
tipString = m_propHover->GetValueAsString();
|
||||||
|
if ( GetColumnCount() <= 2 )
|
||||||
|
{
|
||||||
|
wxString unitsString = m_propHover->GetAttribute(wxPG_ATTR_UNITS, wxEmptyString);
|
||||||
|
if ( !unitsString.empty() )
|
||||||
|
tipString = wxString::Format(wxS("%s %s"), tipString, unitsString );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
space -= m_propHover->GetImageOffset(imageWidth);
|
space -= m_propHover->GetImageOffset(imageWidth);
|
||||||
|
Reference in New Issue
Block a user