Embed a VCL Form (Control like TPanel, etc.) into FireMonkey Form

  

How to embed objects in the VCL Form in FireMonkey Form?

I’ve tried

Var
Panel : TPanel;
IHandle : THandle;
begin
Panel := TPanel.Create(Nil);
IHandle := FmxHandleToHWND(FormMain.Handle);
Winapi.Windows.SetParent(Panel.Handle, IHandle);
end;

But it doesn’t work, it errors 🙁

Comments are closed.