Update wxPropertyGrid documentation
Mention that ChangePropertyValue() shouldn't be called from wxEVT_PG_CHANGED handler. See #18502.
This commit is contained in:
parent
203e265d9b
commit
4489ddc13c
@ -570,7 +570,10 @@ public:
|
||||
/**
|
||||
Changes value of a property, as if from an editor. Use this instead of
|
||||
SetPropertyValue() if you need the value to run through validation
|
||||
process, and also send the property change event.
|
||||
process, and also send @c wxEVT_PG_CHANGED.
|
||||
|
||||
@remarks Since this function sends @c wxEVT_PG_CHANGED, it should not
|
||||
be called from @c EVT_PG_CHANGED handler.
|
||||
|
||||
@return Returns @true if value was successfully changed.
|
||||
*/
|
||||
|
@ -225,7 +225,10 @@ public:
|
||||
/**
|
||||
Changes value of a property, as if by user. Use this instead of
|
||||
SetPropertyValue() if you need the value to run through validation
|
||||
process, and also send the property change event.
|
||||
process, and also send @c wxEVT_PG_CHANGED.
|
||||
|
||||
@remarks Since this function sends @c wxEVT_PG_CHANGED, it should not
|
||||
be called from @c EVT_PG_CHANGED handler.
|
||||
|
||||
@return Returns @true if value was successfully changed.
|
||||
*/
|
||||
@ -1157,8 +1160,8 @@ public:
|
||||
/**
|
||||
Sets value (wxVariant) of a property.
|
||||
|
||||
@remarks Use wxPropertyGrid::ChangePropertyValue() instead if you need to
|
||||
run through validation process and send property change event.
|
||||
@remarks Use ChangePropertyValue() instead if you need to
|
||||
run through validation process and send property change event.
|
||||
*/
|
||||
void SetPropertyValue( wxPGPropArg id, wxVariant value );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user