Skip to main content
Senior
July 30, 2025
Question

Feature request: Export base magic numbers

  • July 30, 2025
  • 1 reply
  • 224 views

When building a Widget or Custom Container, could it be possible to define values that can be used in the base and inherited class?

Things that are in the base constructor.
Coordinates, colours, Bitmaps_id, ...
Predefined coordinates in Designer for when the widgets change size.

This would permit in the application to let the TouchGFX designer figure out the style/geometry and the code to focus on the behaviour and not need to calculate translation of coordinates, just to realign text after an image.
I suggest that this feature is opt-in and not systematic.
Could be a checkbox near the mixins to export drawables properties after construction.

1 reply

Lina_DABASINSKAITE
Community Manager
July 31, 2025

Hello @Marc_LM  

This post has been escalated to the ST Online Support Team for additional assistance.  We'll contact you directly.​  

Best regards,​  

Lina

​In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.