Very "simple" question, for you Jedis: I have 2 visual components, ex: TButton and a TShadowEffect (shadow is parented from the button). I need to get the tag shadow property.

Very "simple" question, for you Jedis: I have 2 visual components, ex: TButton and a TShadowEffect (shadow is parented from the button). I need to get the tag shadow property.

Here I get of course the button's tag, but I need to get the shadows tag:
FTag := (Sender as TButton).Tag;

and

 FTag := TShadowEffect(Sender as TRectangle).Tag; 

of course again this will not work... Should I use Owner instead, with a correct sintax? Well lost here... :)

Comments