Issue with Assigning OnClick Event to Button in FMX Project Using Scripter

Dear Support Team,

I am currently using Scripter in my FMX project and encountered an issue when attempting to assign an event to a button. The following error message was displayed:

Event adapter not defined for 'OnClick' property (TNotifyEvent)

When I tried to add TNotifyEvent support, I received another error indicating that ap_classes could not be found. Additionally, after adding the search path, I encountered errors related to ap_classes uses libs and procedures.

I am aware of Scripter.EventBroker, but it interacts with both Delphi and Scripter. What I need is to script the event.

Could you please assist me in resolving this issue?

Best regards.

You didn't specify, but I assume ap_Classes can't be used because you are receiving errors related to VCL classes which are not present in your FMX application?

In this case, you need to register the TNotifyEvent yourself, using the event adapters. I'm not sure what you meant by this, though:

I am aware of Scripter.EventBroker, but it interacts with both Delphi and Scripter. What I need is to script the event.

Just define an event adapter for TNotifyEvent as explained in the documentation and in a few topics in this support center, like: