Skip to main content
PCu1
Senior
November 8, 2022
Question

ID in bitmapdatabase.hpp

  • November 8, 2022
  • 2 replies
  • 1130 views

Hi,

I would like to know if it is possible to 'freeze' the bitmap ID from build to build?

I.e. give myself an ID...

It is for a remote display with picto-button type, but the customer request is that he wants now a remote with a dynamic keypad. The button matrix(position, picto id, event...) would be send by communication by the other card.

While the number of picto is constant there will not trouble. If the number changes it will be not compatible.

It seems it is in alphabetic order in bitmapdatabase.hpp and the only solution if I add a picto in the future it is to insert with end of alphabet character to put in the end of the regenerated list.

Pierre

This topic has been closed for replies.

2 replies

Yoann KLEIN
ST Employee
November 9, 2022

Hello @Community member​ ,

Not sure that is possible with TouchGFX, but you could maybe try something from this article.

Also, why are you not sending the string associated to the bitmap name, or another data related to each bitmap, instead of a integer which can change on runtime ?

/Yoann

Yoann KLEINST Software Developer | TouchGFX
PCu1
PCu1Author
Senior
November 10, 2022

Hi Yoann,

I think it could be better that I send my own list of ID and make a matching table as you advice.

Pierre