2021-04-05 12:53 AM
Is it possible to create an UI template just like examples of TouchGFX Designer?
Solved! Go to Solution.
2021-04-06 04:56 AM
Hi,
It is actually possible to create a UI template. For this you have to follow the same steps as for creating an application template as explained in the corresponding article. When you will edit the JSON file, you will need to edit the TAG section and write "TGUI" instead of "TGAT" in order to be able to see it in Designer in the "UI template" section.
I have discovered an issue recently with creating application templates with the latest TouchGFX versions. You will need to use TouchGFX Environment 4.14 (or 4.13) instead until this is fixed.
Otherwise the solution Alexandre gave is very easy and quicker to do as well :grinning_face_with_sweat:
/Romain
2021-04-06 12:01 AM
Hello Ezgi,
From what I know it's not possible.
But in any case, if what you want is reusing a UI, this is really easy.
When you have the Designer opened inside a project, simply click Edit -> Import GUI -> Browse
Select the .touchgfx file of your "UI Template" and the UI will be automatically imported in your current project. I often do that and it's very convenient.
/Alexandre
2021-04-06 04:56 AM
Hi,
It is actually possible to create a UI template. For this you have to follow the same steps as for creating an application template as explained in the corresponding article. When you will edit the JSON file, you will need to edit the TAG section and write "TGUI" instead of "TGAT" in order to be able to see it in Designer in the "UI template" section.
I have discovered an issue recently with creating application templates with the latest TouchGFX versions. You will need to use TouchGFX Environment 4.14 (or 4.13) instead until this is fixed.
Otherwise the solution Alexandre gave is very easy and quicker to do as well :grinning_face_with_sweat:
/Romain
2021-04-06 05:12 AM
Hi,
I did it as you said and it worked. Thank you.
2021-04-06 05:17 AM
Perfect :thumbs_up: