Hi, I'm trying to put a Form inside a Tab in my TmsFmxPagecontrol, in a Firemonkey Application.
the tab item is created but the form always shows in a new Window and not inside the tab item.
I try this approach:
var
page : TTMSFMXPageControlPage;
Container : TTMSFMXPageControlContainer;
VForm : Tform ;
begin
Page := Maintab.Pages.Add;
Container := Page.Container;
//New Form
vForm := TForm.Create(Container);
vForm.Parent := Container;
vForm.Show;
Page.Text:= vForm.Caption;
// Active Page in PageControl
MainTab.ActivePageIndex := MainTab.Pages.Count - 1;
Is there a way to solve this problem or a better way to achieve what I need?
Best Regards
Jose