739 views
in GUI Development by
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
by
 
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 - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...