Firemonkey TFrame - how to fire ancestor TFrame events?

131 Views Asked by At

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?

1

There are 1 best solutions below

3
Станислав 000 On

I think, you overrided this event by simple double click on button (on object of your Frame) in IDE. So you dont have original call event. Check *.fmx files of TBasicFrame and TForm with object TBasicFrame.