Skip to main content
DSwea.1
Associate III
October 19, 2021
Question

How to reuse TouchGFX content?

  • October 19, 2021
  • 2 replies
  • 1317 views

I'm still getting up to speed with TouchGFX, but I'm puzzled as to how to reuse existing content in new projects. There is no SaveAs command, so that option is out. I tried running 2 copies of the application with the idea of copying and pasting screens between projects, but copy/paste seems to work only within the active project. So how is one to reuse content (say a screen one has invested a good deal of time creating) from existing projects in new projects? This capability is absolutely essential in text-based code, so maybe I'm just missing a detail of how to do so in TouchGFX.

This topic has been closed for replies.

2 replies

Alexandre RENOUX
Visitor II
October 19, 2021

Hello DSwea.1,

There is no automatic way to reuse content in the current version of the Designer.

To reuse content, you need to do it manually (albeit tedious) by

  • Editing the .touchgfx file with the information about your screen-to-be-reused
  • Copy paste the code of your screen in an empty screen previously created in the Designer of your new project.

Sorry for the inconvenience and hope this will help you

/Alexandre

Romain DIELEMAN
ST Employee
October 21, 2021

Another option would be to use the "import GUI" option when starting a new project where you import the GUI of the project with that one screen you intend on reusing.

/Romain

ksale.1
Senior II
August 10, 2022

Hi @Romain DIELEMAN​ 

Where is that option in 4.20.0?

wired
Senior II
August 25, 2022

Edit->Import->GUI

or

Edit->Import->Custom Container