Skip to main content
Zui
Senior
June 10, 2019
Question

Any way to reorder Resources?

  • June 10, 2019
  • 5 replies
  • 958 views

as title say, my current project is getting a little messy, i'd like to reorder the Texts resources i've made so far. Any way to do that without deleting and recreate in the correct order all the resources?

Thanks

Stefano

This topic has been closed for replies.

5 replies

eng23
Senior
June 10, 2019

Hello @Zui​ ,

I think you can reorder the texts and make changes in Excel file:

\TouchGFX\assets\texts\texts.xls

If you change the order there when you open touchgfx the order ir updated.

Hope this helps.

Regards.

Anderson

Martin KJELDSEN
Principal III
June 11, 2019

Hi @Zui​,

As long as the keys remain the same you can re-arrange as much as you want. You reference the text keys (e.g. T_MY_TEXT_ID) in your code, and if you change the keys in the text-sheet then you also have to modify your code.

Keeping text sheet nice and clean can be a challenge as the project grows because it is difficult to design good names with prefixes or postfixes, etc, from the start.

/Martin

Martin KJELDSEN
Principal III
June 13, 2019

I may have misunderstood your question: If you open the text sheet (assets/text/texts.xlsx) you can reorder things there. If you don't have excel you can use openoffice or similar (google docs) to do it.

/Martin

Zui
ZuiAuthor
Senior
June 13, 2019

openoffice can't save in xlsx, i must find a proper converter (tryed 3 so far, but converted bad and got error and touchGfx coudn't load the project with the modified texts.xlsx

Martin KJELDSEN
Principal III
June 13, 2019

Use Google docs. It can export as xlsx. I do it all the time.

/Martin