Recent

Author Topic: Is there a library that creates and manipulates the UI out of JSON?  (Read 1386 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1165
    • HowTos Considered Harmful?
For some time I have been looking for a library that some of the so called scripting languages could use to manipulate LCL interfaces.

I have come across one called PHP-GUI which appears to implement most of the functionality in a single file - https://github.com/gabrielrcouto/php-gui/blob/master/lazarus/unitipcthread.pas

Is there an existing library that does something similar, ie construct UI elements from JSON and send responses and events back to the calling code?
Lazarus 3.0/FPC 3.2.2

vfclists

  • Hero Member
  • *****
  • Posts: 1165
    • HowTos Considered Harmful?
Re: Is there a library that creates and manipulates the UI out of JSON?
« Reply #1 on: January 06, 2021, 11:15:46 pm »
Does the LCL itself support modifying the GUI from JSON directly, ie set the state of some controls from JSON or return the state of some controls as JSON?


PS. I was in the process of creating a new one when a Google search revealed this.
Lazarus 3.0/FPC 3.2.2

Warfley

  • Hero Member
  • *****
  • Posts: 2040
Re: Is there a library that creates and manipulates the UI out of JSON?
« Reply #2 on: January 07, 2021, 03:46:23 am »
You could check out the fpjsonrtti unit, it has the ability to read and write published properties from classes from and to json.

 

TinyPortal © 2005-2018