Property removal and deletion done from wxPropertyGrid event handler is now postponed to idle event
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63534 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -240,18 +240,34 @@ public:
|
||||
bool ChangePropertyValue( wxPGPropArg id, wxVariant newValue );
|
||||
|
||||
/**
|
||||
Deletes a property by id. If category is deleted, all children are
|
||||
automatically deleted as well.
|
||||
*/
|
||||
Removes and deletes a property and any children.
|
||||
|
||||
@param id
|
||||
Pointer or name of a property.
|
||||
|
||||
@remarks If you delete a property in a wxPropertyGrid event
|
||||
handler, the actual deletion is postponed until the next
|
||||
idle event.
|
||||
|
||||
This functions deselects selected property, if any.
|
||||
Validation failure option wxPG_VFB_STAY_IN_PROPERTY is not
|
||||
respected, ie. selection is cleared even if editor had
|
||||
invalid value.
|
||||
*/
|
||||
void DeleteProperty( wxPGPropArg id );
|
||||
|
||||
/**
|
||||
Removes and returns a property.
|
||||
Removes a property. Does not delete the property object, but
|
||||
instead returns it.
|
||||
|
||||
@param id
|
||||
Pointer or name of a property.
|
||||
|
||||
@remarks Removed property cannot have any children.
|
||||
|
||||
Also, if you remove property in a wxPropertyGrid event
|
||||
handler, the actual removal is postponed until the next
|
||||
idle event.
|
||||
*/
|
||||
wxPGProperty* RemoveProperty( wxPGPropArg id );
|
||||
|
||||
|
Reference in New Issue
Block a user