I’m writing a little wrapper of AlmediaDev’s TscPanel and GlyphIcons to create a behavior similar to TLabeledEdit. Once the component is added in design time I wanted to check 3 conditions:
- If it’s design time (via
csDesigning in ComponentState
) - If the owner is a TForm (i.e it’s not being added into another panel or smth).
- If the
TscStyledForm
is already on that form and has the property of shadowing activated.
My problem arises from the fact that my ComponentState seems to be empty, what makes me think on who manages, adding or removing flags, this property. Since it’s inherited from TComponent all the way up I don’t believe it is managed by the third-party.
As a side question, am I able to access other components from the form and change their properties on design time? Like in my 3rd condition, if it’s not active couldn’t I activate it myself?
Thanks in advance.