- Added support for saving TGA files.
- Added wxArtProvider returning higher quality icons from Tango project.
- wxPropertyGrid: Added "HasAlpha" attribute for wxColourProperty.
+- wxPropertyGrid: Disabling a property didn't work properly if a child item
+ was selected (Sébastien Gallou).
- Added support for saving PNG files with palette (troelsk).
- Added support for saving as GIF and animated GIF (troelsk).
- Fix wxWrapSizer minimal size calculation (Catalin Raceanu).
void InitAfterAdded( wxPropertyGridPageState* pageState,
wxPropertyGrid* propgrid );
+ /**
+ Returns true if child property is selected.
+ */
+ bool IsChildSelected() const;
+
// Removes child property with given pointer. Does not delete it.
void RemoveChild( wxPGProperty* p );
}
}
+bool wxPGProperty::IsChildSelected() const
+{
+ size_t i;
+ for ( i = 0; i < GetChildCount(); i++ )
+ {
+ if ( m_parentState->DoIsPropertySelected( Item(i) ) )
+ return true;
+ }
+
+ return false;
+}
+
wxVariant wxPGProperty::ChildChanged( wxVariant& WXUNUSED(thisValue),
int WXUNUSED(childIndex),
wxVariant& WXUNUSED(childValue) ) const
void wxPropertyGrid::RefreshProperty( wxPGProperty* p )
{
- if ( m_pState->DoIsPropertySelected(p) )
+ if ( m_pState->DoIsPropertySelected(p) || p->IsChildSelected() )
{
// NB: We must copy the selection.
wxArrayPGProperty selection = m_pState->m_selection;