Hello Hans,

Thanks for your showing to the right direction.

You were right, that I had to move explicit registration of
TNoBackPage to Register procedure as the main component has its own
one. Afterwards I didn't get any more any exception from IDE.

Thanks again.

TRoland;

<<< 11.3.2009 14:11 - Hans-Peter Diettrich "[email protected]" >>>
HPD> Roland Turcan schrieb:

>> I have my own component, which successfully installed into Lazarus.
>> When I use this component on any form after reopening/reloading form
>> it reports an error. That is a simple notebook implementation with no
>> background to get pages transparent.

HPD> What's this?

>> constructor TNoBackNotebook.Create(AOwner: TComponent);
HPD> [...]
>>   if not Registered then
>>   begin
>>     Classes.RegisterClasses([TNoBackPage]);
>>     Registered := True;
>>   end;
>> end;

HPD> IMO the registration should occur in a Register procedure in the unit,
HPD> at least *before* any instance is created.

HPD> DoDi





-- 
Best regards, TRoland
http://www.rotursoft.sk
http://exekutor.rotursoft.sk

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to