cancel
Showing results for 
Search instead for 
Did you mean: 

Feature request: Export base magic numbers

Marc_LM
Senior

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 1
Lina_DABASINSKAITE
Community manager
Community manager

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.