Support inherited attributes in wxPropertyGrid XRC handler

Allow specifying recurse="1" to inherit the attribute, as this is much
nicer than having to specify it for all the children.

Also add support for this to wxPropertyGridPopulator, which is used by
the XRC handler.
This commit is contained in:
Vadim Zeitlin 2024-01-31 02:48:10 +01:00
parent 0ddbf965c9
commit 9550c37e29
5 changed files with 42 additions and 4 deletions

View file

@ -1865,6 +1865,11 @@ to use it.
@row3col{choices, @ref overview_xrcformat_type_string,
Space-separated string containing the possible choices for the properties
using them, e.g. wxFlagsProperty or wxEnumProperty.}
@row3col{attribute, @ref overview_xrcformat_type_string,
Value for the property attribute with the name specified by the `name`
attribute of this element. Additional `recurse` attribute is supported and,
if specified with the value of `1`, results in the attribute being set for
this property and all its children recursively.}
@endTable
These elements define individual rows of @ref xrc_wxpropertygrid or @ref