How to create dynamic layout

asked Feb 12 in GUI Development by jirgl
Hello, I would like to create layout dynamically by some JSON or XML file. Is there any option how to load this file as resource, read it and use configuration from it? Can I create UI elements from Chora?

Thank you,
Jakub Jirgl

1 Answer

0 votes
answered Feb 12 by Paul Banach
Best answer

Hello Jakub,

there is no JSON/XML parser integrated in Embedded Wizard. But creating of GUI components dynamically is not a problem. Please see the section Compose the component programmatically.

If you don't depend on the XML/JSON syntax I would suggest to design a simple syntax for your particular purpose and implement the corresponding parser. Or you would need to implement a JSON/XML parser or integrate an existing one to your project. For simple application cases you can pass the UI description in a string to EmWi and process/parse the string in Chora. Please see the description of the string data types.

I hope it helps you further.

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint