Could pe possible to add a button to reset a property's value to a default one?
Notice the initial property value could differ from its default value. For example, I could want to specify a 50% for a JPG compression quality as initial value but to set a 75% as "reset/default" value.
You should add a "defaultValue" when calling the wxPGProperty's contructors. For example:
class wxBoolProperty : public wxPGProperty
wxBoolProperty ( const bool value, const bool defVal );
In that way, when the user presses the "reset value" the property's value could be set to the value the programmer specified in the "defVal".
Log in to post a comment.