@remarks
This flag cannot be used with property iterators.
+
+ @see wxPGProperty::SetAutoUnspecified()
*/
wxPG_PROP_AUTO_UNSPECIFIED = 0x00040000,
bool AreChildrenComponents() const;
/**
- Sets or clears given property flag.
+ Sets or clears given property flag. Mainly for internal use.
- @see propgrid_propflags
+ @remarks Setting a property flag never has any side-effect, and is
+ intended almost exclusively for internal use. So, for
+ example, if you want to disable a property, call
+ Enable(false) instead of setting wxPG_PROP_DISABLED flag.
+
+ @see HasFlag(), GetFlags()
*/
void ChangeFlag( wxPGPropertyFlags flag, bool set );
*/
void SetAttribute( const wxString& name, wxVariant value );
+ /**
+ Set if user can change the property's value to unspecified by
+ modifying the value of the editor control (usually by clearing
+ it). Currently, this can work with following properties:
+ wxIntProperty, wxUIntProperty, wxFloatProperty, wxEditEnumProperty.
+
+ @param enable
+ Whether to enable or disable this behavior (it is disabled by
+ default).
+ */
+ void SetAutoUnspecified( bool enable = true );
+
/**
Sets property's background colour.
void SetDefaultValue( wxVariant& value );
/**
- Sets given property flag.
-
- @see propgrid_propflags
- */
- void SetFlag( wxPGPropertyFlags flag );
+ Sets or clears given property flag, recursively. This function is
+ primarily intended for internal use.
- /**
- Sets or clears given property flag, recursively.
-
- @see propgrid_propflags
+ @see ChangeFlag()
*/
void SetFlagRecursively( wxPGPropertyFlags flag, bool set );