cancel
Showing results for 
Search instead for 
Did you mean: 

Any way to reorder Resources?

Zui
Senior

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

5 REPLIES 5
eng23
Senior

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
Chief III

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
Chief III

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
Senior

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
Chief III

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

/Martin