Firemonkey TFrame – how to fire ancestor TFrame events?

  

I created a base TFrame class, eg TBasicFrame
There is one button called btnTest, which do a simple task
showmessage(‘test’);

On another TForm or TFrame, I place this TBasicFrame on it. However, when I click this btnTest on this or TForm/TFrame which has an instance of TBasicFrame on it, the showmessage does not run.
What must I do to ensure that all code in the ancestor frame will execute? That means the showmessage(‘test’) will run even when new instances of TBasicFrame is placed anywhere.
Any advice?

Comments are closed.