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!

This is an old thread, but the problem is still there. We use the wrapper in multiple places in our app, to insert (custom) FMX components in a native GUI made with iCL. It is cumbersome to manage workarounds every time we want a wrapper that is not full screen.

It would be appreciated if you could solve the problem at the source, so the wrapper can be used out of the box without workarounds.

PS. I have a simple test program that reproduces the problem.

Hi,

You can send me the sample program I’ll investigate asap.

Thank you. I have sent the sample program to the supportcenter email.