Jump to content
JohnLM

Is there a program for Converting from VCL to FMX?

Recommended Posts

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

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

  • Sad 1

Share this post


Link to post

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?

  • Like 1

Share this post


Link to post

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

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×