Skip to main content
Senior
Jul 30, 2025 8:51 PM UTC
Question

Feature request: Export base magic numbers

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.

    This topic has been closed for replies.

    1 reply

    Lina_DABASINSKAITE
    ST Community Manager
    Jul 31, 2025 3:19 PM UTC

    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 'Best answer' on the reply which solved your issue or answered your question.