Hello
Hello,
I created a embedded forms in runtime using TTabControl the creation was fine but i stuck in how to determine the open tabs so it wont create(self) again when i click on the same button ?
this code for the adding forms in TTacbControl
procedure AddForm(EmbeddableForm: TCustomInfoFrame);
begin
EmbeddableForm.Show(MainForm.FaceP);
MainForm.cxTabControl1.Tabs.AddObject(EmbeddableForm.Caption, EmbeddableForm);
ResizeTabsWidth;
ShowForm(EmbeddableForm);
end;
I created a embedded forms in runtime using TTabControl the creation was fine but i stuck in how to determine the open tabs so it wont create(self) again when i click on the same button ?
this code for the adding forms in TTacbControl
procedure AddForm(EmbeddableForm: TCustomInfoFrame);
begin
EmbeddableForm.Show(MainForm.FaceP);
MainForm.cxTabControl1.Tabs.AddObject(EmbeddableForm.Caption, EmbeddableForm);
ResizeTabsWidth;
ShowForm(EmbeddableForm);
end;
Comments
Post a Comment