cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to configure a box with rounded corners? I could create images to solve this, but there will be several background boxes in this project, so it would conserve memory if I could use boxes with fill. Thanks

RLein.1
Associate II
 
1 REPLY 1
Yoann KLEIN
ST Employee

Hello @RLe.1inen​ ,

There is currently no option in TouchGFXDesigner to round the corners of boxes.

But you can create a CustomContainer with a box and 4 "Shape" widgets. Then, you be able to modify the coordinates of your shape's points to get your rounded corner.

The issue with this solution is that it's quite complex to implement, and it will require more resources from your board, because it will have to calculate complex points.

So, I recommend you strongly to create an image of your box with rounded corner, and then call it in TouchGFXDesigner by using the "Image" widget, even though it will cost you more memory.

Hope that it helped you,

/Yoann

Yoann KLEIN
ST Software Developer | TouchGFX