Just a quick question, I hope.
I'm ending up with a lot of similar property names (because they all relate
to the same area of the control) eg CaptionText, CaptionTextColour,
CaptionBackground, CaptionHasGradient, CaptionGradientStart,
CaptionGradientEnd to name just a few.
I know properties like Font collect these 'sub-details' together into a
group (so you only see +Font in the properties until you click on the + and
see all the Bold, Italic, FontName, etc).
I know how to put properties into the Categories, like Appearance, but how
do I gather linked properties together as Font does? For example, it would
make sense to just have '+CaptionBackground', and within that have the
colours, gradient choice, etc.
Thanks in advance for your assistance,
Ann-Marie
A Ratcliffe - 02 Nov 2005 12:27 GMT
Ok, I think I've found the answer (having finally thought to google
'subproperties' instead of 'grouping properties'). It looks like it involves
gathering all the subproperties into a new class, then deriving the
TypeConverter from ExpandableObjectConverter.
Anyone know if you can only have one sub-level of subproperties, or wether
you can sub-group further?
Also, any advice on what access modifier I should use on the
property-grouping classes and their converters and editors? They have no
relevance beyond this control I'm writing (ok, so they may in the future
controls).
Yours,
Ann-Marie
> Just a quick question, I hope.
>
[quoted text clipped - 15 lines]
>
> Ann-Marie