unit mainfrm;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, DBXDataSnap, DBXCommon,
DB, SqlExpr, DBClient, DSConnect, Grids,
DBGrids,
midas, ExtCtrls, NxCollection, ComCtrls, Menus, VirtualTrees,
frmgetGastroOrder, NxPageControl;
[...]
var
Form14: TForm14;
pagesArry:
array of THandle;
implementation
uses dm_user, frmtest, dbselectfrm;
[...]
procedure TForm14.Btn1Click(Sender: TObject);
var
frmmeintest: Tfrm_Test;
begin
frmmeintest:= Tfrm_Test.Create(sheet1);
frmmeintest.Parent:= sheet1;
sheet1.Glyph.Assign(frmmeintest.Icon);
sheet1.Caption:=frmmeintest.Caption;
frmmeintest.Height:=sheet1.Height;
frmmeintest.Width:= sheet1.Width;
frmmeintest.Show;
SetLength(pagesArry, pgcMain.PageCount);
pagesArry[0]:=frmmeintest.Handle;
// Wollte dort die Handle der Forms sammeln, um diese über das wm_close zu informieren
pgcMain.ActivePageIndex:=0;
end;