1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| unit Unit4;
interface
uses
Classes, SysUtils, IWAppForm, IWApplication, IWColor, IWTypes,
IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl, IWControl, IWCompButton,
Vcl.Controls, Vcl.Forms, Unit1, IWVCLBaseContainer, IWContainer,
IWHTMLContainer, IWHTML40Container, IWRegion;
type
TIWForm4 = class(TIWAppForm)
OpenFrame: TIWButton;
IWRegion1: TIWRegion;
CloseFrame: TIWButton;
procedure OpenFrameClick(Sender: TObject);
procedure CloseFrameClick(Sender: TObject);
public
aFrame : TFrame;
end;
implementation
{$R *.dfm}
procedure TIWForm4.CloseFrameClick(Sender: TObject);
begin
aFrame.Free;
//IwRegion1.Invalidate; // inutile
end;
procedure TIWForm4.OpenFrameClick(Sender: TObject);
begin
aFrame:=TIWFrame1.Create(self);
aFrame.Parent := IWRegion1;
end;
initialization
TIWForm4.SetAsMainForm;
end. |
Partager