FireMonkey观察员

时间:2017-10-19 19:33:32

标签: firemonkey observer-pattern key-value-observing

我有两个自定义控件tDescendant1tDescendant2,它们是其他自定义控件tAncestor的后代。 tAncestor处理一些事件为MouseDownClick等。tDescendant1tDescendant2也必须处理Click事件,因此他们依次处理,将祖先的OnClick事件设置为自己的处理程序。

我的表单Descendant1Descendant2(分别是tDescendant1tDescendant2的实例)我需要在OnClick事件发生时在[{1}}上触发,Descendant1的基础tAncestor会被通知。

我可以使用观察员来完成此任务吗?

感谢任何建议。感谢。

0 个答案:

没有答案