Use getter methods to get access to wxPGProperty member variables.
Use GetValueImage() getter to get access to m_valueBitmap data member. Use GetMaxLength() getter to get access to m_maxLen data member. Use GetAttributes() getter to get access to m_attributes data member. Use GetChoices() to get access to m_choices data member. Use GetDepth() to get access to m_depth member variable. Use GetBaseName() method to get access to m_name data member Use GetLabel() method to get access to m_label member variable. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -845,8 +845,8 @@ void wxPropertyGrid::OnComboItemPaint( const wxPGComboBox* pCb,
|
||||
}
|
||||
|
||||
// If not drawing a selected popup item, then give property's
|
||||
// m_valueBitmap a chance.
|
||||
if ( p->m_valueBitmap && item != pCb->GetSelection() )
|
||||
// value image a chance.
|
||||
if ( p->GetValueImage() && item != pCb->GetSelection() )
|
||||
useCustomPaintProcedure = false;
|
||||
// If current choice had a bitmap set by the application, then
|
||||
// use it instead of any custom paint procedure
|
||||
@@ -2073,7 +2073,7 @@ wxWindow* wxPropertyGrid::GenerateEditorTextCtrlAndButton( const wxPoint& pos,
|
||||
if ( !property->IsValueUnspecified() )
|
||||
text = property->GetValueAsString(property->HasFlag(wxPG_PROP_READONLY)?0:wxPG_EDITABLE_VALUE);
|
||||
|
||||
return GenerateEditorTextCtrl(pos,sz,text,but,property->m_maxLen);
|
||||
return GenerateEditorTextCtrl(pos,sz,text,but,property->GetMaxLength());
|
||||
}
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user