Wrapper control

Hi,


I used a wrapper control inside a TMSFMXNativeUITabBarItem,set to alClient, and point to another form in the application. When I run this application, the target form is shown full screen, thus overlapping with the tabs on the mainform. 

Am I missing something here?


Best regards,

Jan

Hi, 


Can you try the following and report back if that helped to get the Form inside a TabBarItem ?


procedure TForm1.FormCreate(Sender: TObject);
begin
  TMSFMXNativeFMXWrapper1.DetailView := True;
end;

procedure TForm1.FormShow(Sender: TObject);
begin
  TMSFMXNativeUITabBarItem1.GetControlParentView.addSubview(TMSFMXNativeFMXWrapper1.GetFormView);
end;

It might be a parent/child relation that forces the form back to the root view, we will have to investigate this, 
if the fmx wrapper is placed on the main form then there should be no issue.

Kind Regards, 
Pieter

This worked, thanks!