Code Monkey home page Code Monkey logo

Comments (4)

jean-lopes avatar jean-lopes commented on May 30, 2024

Hi!
I believe it will work, if it doesn't, please add an example (dfm) to this issue :)

from dfm-to-json.

jean-lopes avatar jean-lopes commented on May 30, 2024

Hi,

Is it great challenge to make such conversion? Widget mapping seems to me possible, if talking about properties only, not sure about events...

Yes, it's quite a challenge. Major factors that come to mind are:
Your delphi codebase, for instance: how much runtime form manipulation happens.

The target platform, you might end up with events that cannot be easily mapped, or even components/widget.

from dfm-to-json.

mnevio avatar mnevio commented on May 30, 2024

Hi Jean,

actually, no runtime form manipulation at all.

Components may be different, but in such case maybe it is possible to use component mapping?

Regarding events, we use restricted number of different events ( Pre $ Post events, OnClick, OnStart, OnDisplay, OnClose, OnChange...) As I see, all this events are used in WPF.

Btw. I am using events based on widget name in WPF, that is a bit unusual, but enough flexible, so expecting no problem with this. This means XAML file has no code behind on no direct referencing to c# code. It behaves similar as DFM to Delphi code.

from dfm-to-json.

jean-lopes avatar jean-lopes commented on May 30, 2024

Hi!
Of to a good start!

Components may be different, but in such case maybe it is possible to use component mapping?

Yes, it is possible :) might be a lot of work still.

For events, and other info that is not loaded directly from the DFM (combo box data for instance, that can be loaded directly from the database), you can use this tool to explore your DFM and query for such instances! The original use of this library for me was actually to query our codebase forms, you can use the tool jq (https://stedolan.github.io/jq/) and/or any database that supports json data.

If you know your way around Haskell, you might want to use it to write the converter. It's probably easier than exporting to json, and processing it on other languages.

from dfm-to-json.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.