Show units in tooltips

This commit is contained in:
Pavel Tyunin 2020-09-18 20:49:39 +03:00 committed by Artur Wieczorek
parent 4c11ab63c1
commit ca1e086225

View File

@ -5111,6 +5111,12 @@ bool wxPropertyGrid::HandleMouseMove( int x, unsigned int y,
if ( imageSize.x > 0 )
imageWidth = imageSize.x;
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);