Scripter Error : "Class TButton not found."

Hi,

I having a issue with a proyect created on the IDE that works ok, but when I try to run in on another app with a IDEScripter component only(No Engine Component) I get "Class Button not Found" Empty form works ok. I have included "ap_Buttons.pas" on the project with no success.

Any hint?

Thanks in advance,

Omar Zelaya

Have you tried to call

RegisterClass(TButton);

At the beginning of your application?

Hi,

This has to be done for every component to use? how does the IDE Scripter Demo does it?

Thanks in advance,

Omar Zelaya

First: did it solve the problem?

Regarding your question, the IDE registers the components to be used in the palette, calling RegisterComponent, and such function calls RegisterClass in turn:

    RegisterComponent('Standard',       TButton,            'StdCtrls');

Hi,

Yes that solved the problem. Thanks for the tip.

Omar Zelaya

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.