david_navigator 12 Posted September 28, 2021 I just accidentally instantiated an FMX form in my VCL app and no errors were thrown (nor warnings at compile time). It just seems to work. Is this a fluke or does delphi natively now support VCL & FMX forms in the same app ? Share this post Link to post
Remy Lebeau 1418 Posted September 28, 2021 Mixing of VCL and FMX together in the same project is NOT officially supported. There are 3rd party solutions to make it work, but out of the box this is a fluke if it actually works. 1 Share this post Link to post
miab 25 Posted September 29, 2021 (edited) As far as I know you could always mix VCL with FMX only FMX.Forms has to come before VCL.Forms: uses FMX.Forms, Vcl.Forms, ... Edited September 29, 2021 by miab Share this post Link to post
david_navigator 12 Posted September 29, 2021 2 hours ago, miab said: As far as I know you could always mix VCL with FMX only FMX.Forms has to come before VCL.Forms: uses FMX.Forms, Vcl.Forms, ... The project file has no mention of FMX in it at all. This is just a host VCL form in a VCL app where I mistyped a unit name i.e MyFormU rather then MyFormVCL_U and then instantiated the form thus MyForm := TmyForm.Create(...); MyForm.Showmodal; It was only after running that I realised that the TmyForm being instantiated was the one from the FMX unit rather than the VCL one. (If you're wondering why I have two similar units one VCL and one FMX, I'm in the process of converting a third party FMX project to VCL) Share this post Link to post
miab 25 Posted September 29, 2021 (edited) Indeed uses // FMX.Forms, Vcl.Forms, ... compiles in D11 too Edited September 29, 2021 by miab Share this post Link to post
shineworld 73 Posted September 29, 2021 (edited) Look at this github project on how to embedded FMX form in a VCL application: https://github.com/vintagedave/firemonkey-container https://parnassus.co/open-source/tfiremonkeycontainer/ I will try next week to embed a FMX 3D Opengl form in my VCL App... Edited September 29, 2021 by shineworld Share this post Link to post
david_navigator 12 Posted September 29, 2021 43 minutes ago, shineworld said: Look at this github project on how to embedded FMX form in a VCL application: https://github.com/vintagedave/firemonkey-container https://parnassus.co/open-source/tfiremonkeycontainer/ I will try next week to embed a FMX 3D Opengl form in my VCL App... Thanks, but I don't actually need an FMX form in my VCL app, I was just more surprised that it worked ! Share this post Link to post
shineworld 73 Posted September 29, 2021 (edited) There are some very good things in FMX that I would like to have in VCL.... Migrate a full application from VCL to FMX is a nightmare and to have a way to do is not so bad. For new projects, I will plan to TRY the FMX world. Edited September 29, 2021 by shineworld Share this post Link to post
sh17 26 Posted June 21 I set up the project again and incorporated all pull requests. landrix/Delphi-Firemonkey-Container (github.com) 1 Share this post Link to post
#ifdef 12 Posted June 22 22 hours ago, sh17 said: I set up the project again and incorporated all pull requests. landrix/Delphi-Firemonkey-Container (github.com) The big problem with all these "containers" is that they don't work with the Tab button :( Share this post Link to post
DavidJr. 1 Posted November 13 Hi, this is a nice feature. I am able to render a Firemonkey rending of a 3D model within a VCL Form. But it would be nice to be able to pass data back and forth between the FMX form and the VCL form. Share this post Link to post