Skip to main content
Ezgi
Associate III
April 5, 2021
Solved

Creating UI template

  • April 5, 2021
  • 2 replies
  • 1016 views

Is it possible to create an UI template just like examples of TouchGFX Designer?

This topic has been closed for replies.
Best answer by Romain DIELEMAN

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

2 replies

Alexandre RENOUX
Visitor II
April 6, 2021

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

Romain DIELEMAN
Romain DIELEMANBest answer
ST Employee
April 6, 2021

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

Ezgi
EzgiAuthor
Associate III
April 6, 2021

Hi,

I did it as you said and it worked. Thank you.

Romain DIELEMAN
ST Employee
April 6, 2021

Perfect :thumbs_up: