Hi all
I've built a component where one of it's published properties is of type TControl. I'm able to select the value in the Object Inspector (it even displays the list of available TControl components that are currently on the form). The problem occurs when I remove the control - the Object Inspector gets confused and thows a bunch of exceptions. From this point on nothing can be done but abnormally ending Delphi IDE. Here is the component code:
TMyPanel = class(TPanel)
private
{ Private declarations }
FControl : TControl;
published
{ Published declarations }
property Control : TControl read FControl write FControl;
end;
Any ideas?
Thanks in advance.
I've built a component where one of it's published properties is of type TControl. I'm able to select the value in the Object Inspector (it even displays the list of available TControl components that are currently on the form). The problem occurs when I remove the control - the Object Inspector gets confused and thows a bunch of exceptions. From this point on nothing can be done but abnormally ending Delphi IDE. Here is the component code:
TMyPanel = class(TPanel)
private
{ Private declarations }
FControl : TControl;
published
{ Published declarations }
property Control : TControl read FControl write FControl;
end;
Any ideas?
Thanks in advance.