JohnLM 14 Posted December 20, 2022 I was wondering if there was a program or tool or whatever you want to call it, for taking a VCL project and converting its components over to an FMX project and be able to open and continue working on it in the FMX environment. I have over time been in this situation, where I start out with VCL but later decide I could use this in Android. Today I'm in that situation. I mainly have tbuttons, tmemos, tpanels, tedits, and ttabs. Share this post Link to post
programmerdelphi2k 237 Posted December 20, 2022 in fact, not! because exists many differences between it. then, you always will have code it. in RAD you can find "reFind.exe" that allow "replace" occurrences by other, but you need create your script manually 1 Share this post Link to post
TigerLilly 16 Posted December 20, 2022 In fact, there is: http://midaconverter.com/ https://www.fmxexpress.com/convert-your-delphi-vcl-apps-to-firemonkey-with-mida/ 1 Share this post Link to post
limelect 48 Posted December 20, 2022 (edited) Try this for free https://github.com/e-delphi/VCL2FMX/ Edited December 20, 2022 by limelect Share this post Link to post
Lars Fosdal 1792 Posted December 20, 2022 Personally, I would probably not use such tools. The move from one visual component lib to another on a different platform is going to cause headaches. You would not want to do direct DB from a mobile device, you often can't use tabs and dialogs the same way - the UI form factor is different, touch vs mouse is different. If the biz logic is done in separate classes, such a move is not difficult to do manually. If it is tightly intertwined with GUI code - you will have a job on your hands. As for the state of Mida - the last update on their forums were in April 2019? 1 Share this post Link to post
Keesver 23 Posted December 20, 2022 Be careful with Mida. From my experience the software is not working. Although it can still be purchased, it won't run because at startup the software cannot contact their license server and then stops. I tried contacting the developer many times, never had a response. Share this post Link to post
Angus Robertson 574 Posted December 20, 2022 I've started converting ICS VCL sample applications to FMX, using VCLToFireMonkeyFormConvtr.exe from: http://www.innovasolutions.com.au/delphistuf/ADUGVCLtoFMXConv.htm or https://github.com/rogerinnova/Delphi-Firemonkey-Dunit It is very basic, search and replace using an INI file, not looked at the Github version, but the zip download was for XE5 and the INI file needed several changes to bring to cope with the latest FMX forms. I mapped TListView to TStringGrid, TRadioGroup to TListBox, TBitBtn to TButton, TComboBox to TComboEdit, TRichEdit to TMemo, TPageControl to TTabControl, and a few other things. TGrid would be better than TStringGrid, except it uses virtual data (which the help fails to mention) which needs a lot of rewriting. TRadioGroup is the biggest problem, visually you can do it, but there is no simple ItemIndex to use, so TListBox with or without a separate caption is easier. I can share my INI file is anyone wants it, but it's a work in progress, several more samples to convert. Angus Share this post Link to post
programmerdelphi2k 237 Posted December 20, 2022 (edited) in the end, basically, all will be a "find(s) and replace(s)"... and YOU'll have that code it! Edited December 20, 2022 by programmerdelphi2k Share this post Link to post
JohnLM 14 Posted December 22, 2022 I've been busy in several things that kept me busy. Life stuff. Anyway. I wanted to thank you all for all the info on this. I will read through it again some more, thanks. Share this post Link to post