How can I inherit a frame ?


2005-05-06 09:34:35 PM
delphi33
I'd like to have several types of IntraWeb frames,
all descending from a common ancestor,
so that I can call some method polimorfically.
I tried to define in a unit :
--------------------
unit uFrameBase;
interface
uses
SysUtils, Classes, Controls, Forms,
IWVCLBaseContainer, IWColor, IWContainer, IWRegion, IWHTMLContainer,
IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl, IWControl,
IWCompLabel;
type
TBaseFrame = class(TFrame)
private
public
end;
implementation
{$R *.dfm}
end.
-------------------------------
and than in another unit:
-------------------------------
unit uFrameRoot;
interface
uses
SysUtils, Classes, Controls, Forms,
IWVCLBaseContainer, IWColor, IWContainer, IWRegion, IWHTMLContainer,
IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl, IWControl,
IWCompLabel,uFrameBase;
type
TRootFrame = class(TBaseFrame)
IWFrameRegion: TIWRegion;
IWLabel1: TIWLabel;
private
public
end;
implementation
{$R *.dfm}
end.
-------------------------------
However when I open the second source,
it appears the following error message:
Intraweb controls can only be placed on IntraWeb forms or Delphi forms
Any suggestion ?
Regards
Maurizio