1
votes

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
Could you edit your question and add complete code for a simple program which reproduce the issue? Publish pas et fmx files for main form and for frame(s). - fpiette

1 Answers

0
votes

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.