Board index » delphi » Class TActionList not found

Class TActionList not found


2004-05-05 01:50:45 AM
delphi259
I have a main form with a button. When I click the button, the program
dynamically creates a form. When this happens I get "Class TActionList not
found".
This has only happened after I added a TActionList to the form - if I
remove it all is well.
If I create a blank form with just an ActionList on it then this works
fine.
The form with the error has many other controls on it. The error occurs
after I call "form := TForm.Create(Self)" but before the OnCreate event
fires.
Has anyone any idea what is going on here? Any help much appreciated.
Regards...
 
 

Re:Class TActionList not found

"MB" <XXXX@XXXXX.COM>schreef in bericht
Quote
I have a main form with a button. When I click the button, the program
dynamically creates a form. When this happens I get "Class TActionList not
found".
...That looks like the file in which the actionlists are located was not
found in the lib-path.
Quote
The form with the error has many other controls on it. The error occurs
after I call "form := TForm.Create(Self)" but before the OnCreate event
fires.
...I always use Application.CreateForm( tFormtype,FormType). Maybe that
helps.
tFormtype and FormType are ofcourse the name and type of the form.
E.g:
Application.CreateForm(tFrmInput, frmInput);
frmInput.showmodal;
frmInput.free;
Hope this helps...
Ron