Replaced 'InlineHelp' property attribute with 'Hint'; Use SetHint() wxTextCtrl and wxComboCtrl member function to set it; Added a small section about help string and hint text in propgrid overview
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -87,7 +87,10 @@ public:
|
||||
wxPGCachedString m_strMin;
|
||||
wxPGCachedString m_strMax;
|
||||
wxPGCachedString m_strUnits;
|
||||
wxPGCachedString m_strHint;
|
||||
#if wxPG_COMPATIBILITY_1_4
|
||||
wxPGCachedString m_strInlineHelp;
|
||||
#endif
|
||||
|
||||
// If true then some things are automatically translated
|
||||
bool m_autoGetTranslation;
|
||||
@@ -2146,6 +2149,22 @@ inline unsigned int wxPropertyGridPageState::GetActualVirtualHeight() const
|
||||
}
|
||||
#endif
|
||||
|
||||
wxString wxPGProperty::GetHintText() const
|
||||
{
|
||||
wxVariant vHintText = GetAttribute(wxPGGlobalVars->m_strHint);
|
||||
|
||||
#if wxPG_COMPATIBILITY_1_4
|
||||
// Try the old, deprecated "InlineHelp"
|
||||
if ( vHintText.IsNull() )
|
||||
vHintText = GetAttribute(wxPGGlobalVars->m_strInlineHelp);
|
||||
#endif
|
||||
|
||||
if ( !vHintText.IsNull() )
|
||||
return vHintText.GetString();
|
||||
|
||||
return wxEmptyString;
|
||||
}
|
||||
|
||||
inline int wxPGProperty::GetDisplayedCommonValueCount() const
|
||||
{
|
||||
if ( HasFlag(wxPG_PROP_USES_COMMON_VALUE) )
|
||||
|
Reference in New Issue
Block a user