@subsection namescope Property Name Scope
-- All properties which parent is category or root have their names
- globally accessible.
+ All properties which parent is category or root can be accessed
+directly by their base name (ie. name given for property in its constructor).
+Other properties can be accessed via "ParentsName.BaseName" notation,
+Naturally, all property names should be unique.
-- Sub-properties (i.e. private child properties which have parent that is not category or
- root or non-aggregate property) can not be accessed globally by their name. Instead, use
- "<property>.<subproperty>".
+@subsection nonuniquelabels Non-unique Labels
+
+ It is possible to have properties with identical label under same parent.
+However, care must be taken to ensure that each property still has
+unique (base) name.
@subsection boolproperty wxBoolProperty
}
/** Sets label of a property.
- @remarks
- This is the only way to set property's name. There is not
- wxPGProperty::SetLabel() method.
*/
void SetPropertyLabel( wxPGPropArg id, const wxString& newproplabel );
m_helpString = helpString;
}
+ /** Sets property's label.
+
+ @remarks
+ - Properties under same parent may have same labels. However,
+ property names must still remain unique.
+ */
void SetLabel( const wxString& label ) { m_label = label; }
inline void SetName( const wxString& newName );
}
/** Sets label of a property.
+
@remarks
- This is the only way to set property's name. There is not
- wxPGProperty::SetLabel() method.
+ - Properties under same parent may have same labels. However,
+ property names must still remain unique.
*/
void SetPropertyLabel( wxPGPropArg id, const wxString& newproplabel );